Eliminate dead code to placate GCC 7's -Wformat-truncation.

This commit is contained in:
John Hood
2017-01-31 23:07:23 -05:00
parent a993c83632
commit c1d85f04fc
2 changed files with 0 additions and 15 deletions
-13
View File
@@ -38,19 +38,6 @@
using namespace Parser;
std::string Action::str( void )
{
char thechar[ 10 ] = { 0 };
if ( char_present ) {
if ( iswprint( ch ) )
snprintf( thechar, 10, "(%lc)", static_cast<wint_t>(ch) );
else
snprintf( thechar, 10, "(0x%x)", static_cast<unsigned int>(ch) );
}
return name() + std::string( thechar );
}
void Print::act_on_terminal( Terminal::Emulator *emu ) const
{
emu->print( this );
-2
View File
@@ -47,8 +47,6 @@ namespace Parser {
wchar_t ch;
bool char_present;
std::string str( void );
virtual std::string name( void ) = 0;
virtual void act_on_terminal( Terminal::Emulator * ) const {};