From e56b8943f98eee514325f5c6b633cd1b38022f81 Mon Sep 17 00:00:00 2001 From: Keith Winstein Date: Sun, 14 Aug 2011 00:19:50 -0400 Subject: [PATCH] Relax assertions on equality --- completeterminal.cpp | 2 +- terminal.cpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/completeterminal.cpp b/completeterminal.cpp index 9138ca7..aeac281 100644 --- a/completeterminal.cpp +++ b/completeterminal.cpp @@ -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; } diff --git a/terminal.cpp b/terminal.cpp index 41dd4ee..12c0da1 100644 --- a/terminal.cpp +++ b/terminal.cpp @@ -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 ); }