Remove various assert(constant) calls

These cause warnings from static checkers, and seem to lead to spurious
GCC7 -Wmaybe-uninitialized.
This commit is contained in:
John Hood
2017-08-07 05:03:18 +02:00
parent 93daa5ac3b
commit a40b67691a
7 changed files with 4 additions and 14 deletions
-2
View File
@@ -95,7 +95,6 @@ string UserStream::diff_from( const UserStream &existing ) const
}
break;
default:
assert( false );
break;
}
@@ -131,7 +130,6 @@ const Parser::Action &UserStream::get_action( unsigned int i ) const
case ResizeType:
return actions[ i ].resize;
default:
assert( false );
static const Parser::Ignore nothing = Parser::Ignore();
return nothing;
}