diff options
author | John Hood <cgull@glup.org> | 2017-01-31 23:07:23 -0500 |
---|---|---|
committer | John Hood <cgull@glup.org> | 2017-01-31 23:08:03 -0500 |
commit | c1d85f04fce8054d0c0eaa4e9782be270e80b586 (patch) | |
tree | 9f5426fe427e53c5d518fb757fadeb9dbe121db8 | |
parent | a993c8363243f592873762f99c2e1d138a2b17e9 (diff) |
Eliminate dead code to placate GCC 7's -Wformat-truncation.
-rw-r--r-- | src/terminal/parseraction.cc | 13 | ||||
-rw-r--r-- | src/terminal/parseraction.h | 2 |
2 files changed, 0 insertions, 15 deletions
diff --git a/src/terminal/parseraction.cc b/src/terminal/parseraction.cc index 022a981..c137838 100644 --- a/src/terminal/parseraction.cc +++ b/src/terminal/parseraction.cc @@ -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 ); diff --git a/src/terminal/parseraction.h b/src/terminal/parseraction.h index 78798c4..42ae74a 100644 --- a/src/terminal/parseraction.h +++ b/src/terminal/parseraction.h @@ -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 {}; |