Relax assertions on equality

This commit is contained in:
Keith Winstein
2011-08-14 00:19:50 -04:00
parent 476ec0da19
commit e56b8943f9
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -44,6 +44,6 @@ void Complete::apply_string( string diff )
bool Complete::operator==( Complete const &x ) const
{
assert( parser == x.parser );
// assert( parser == x.parser ); /* parser state is irrelevant for us */
return terminal == x.terminal;
}
+2 -1
View File
@@ -155,5 +155,6 @@ void Emulator::resize( size_t s_width, size_t s_height )
bool Emulator::operator==( Emulator const &x ) const
{
return ( dispatch == x.dispatch ) && ( user == x.user ) && ( fb == x.fb );
/* dispatcher and user are irrelevant for us */
return ( fb == x.fb );
}