Eliminate dead code to placate GCC 7's -Wformat-truncation.
This commit is contained in:
@@ -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 );
|
||||
|
||||
@@ -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 {};
|
||||
|
||||
Reference in New Issue
Block a user