[thin_show_dups] take out some old assertions

This commit is contained in:
Joe Thornber 2015-09-04 13:56:38 +01:00
parent 216e5acb6c
commit 41a1b85c27

View File

@ -91,8 +91,6 @@ variable_chunk_stream::advance_one()
{ {
uint8_t *big_e; uint8_t *big_e;
assert(big_chunk_);
big_e = big_chunk_->mem_.end; big_e = big_chunk_->mem_.end;
little_b_ = little_e_; little_b_ = little_e_;
little_e_ = last_hashed_; little_e_ = last_hashed_;
@ -104,12 +102,6 @@ variable_chunk_stream::advance_one()
return false; return false;
} }
assert(little_e_ >= big_chunk_->mem_.begin);
assert(little_b_ >= big_chunk_->mem_.begin);
assert(little_e_ <= big_e);
assert(little_b_ <= big_e);
while (little_e_ != big_e) { while (little_e_ != big_e) {
optional<unsigned> maybe_break = h_.step(*little_e_); optional<unsigned> maybe_break = h_.step(*little_e_);
little_e_++; little_e_++;
@ -126,11 +118,6 @@ variable_chunk_stream::advance_one()
if (little_e_ == big_e) if (little_e_ == big_e)
last_hashed_ = little_e_; last_hashed_ = little_e_;
assert(little_e_ >= big_chunk_->mem_.begin);
assert(little_b_ >= big_chunk_->mem_.begin);
assert(little_e_ <= big_e);
assert(little_b_ <= big_e);
return true; return true;
} }