Remove extra debug_assert

This commit is contained in:
Carl Lerche
2017-06-13 13:55:05 -07:00
parent c7de880f6c
commit ab8eac6c05

View File

@@ -134,7 +134,6 @@ impl Encoder {
{
match *index {
Index::Indexed(idx, _) => {
debug_assert!(self.table.len() + 62 > idx, "table={}; index={}", self.table.len(), idx);
let header = self.table.resolve(&index);
try!(encode_int(idx, 7, 0x80, dst));
}
@@ -164,7 +163,6 @@ impl Encoder {
try!(encode_str(header.value_slice(), dst));
}
Index::InsertedValue(idx, _) => {
debug_assert!(self.table.len() + 62 > idx, "table={}; index={}", self.table.len(), idx);
let header = self.table.resolve(&index);
assert!(!header.is_sensitive());