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
+1 -3
View File
@@ -126,7 +126,6 @@ Validity ConditionalCursorMove::get_validity( const Framebuffer &fb,
if ( (row >= fb.ds.get_height())
|| (col >= fb.ds.get_width()) ) {
// assert( false );
// fprintf( stderr, "Crazy cursor (%d,%d)!\n", row, col );
return IncorrectOrExpired;
}
@@ -299,9 +298,8 @@ void NotificationEngine::apply( Framebuffer &fb ) const
}
break;
case -1: /* unprintable character */
default: /* Bogus width, ignore. */
break;
default:
assert( false );
}
}
}