From 41a1b85c2700ac9d88a2158047e1835b5c0214f9 Mon Sep 17 00:00:00 2001 From: Joe Thornber Date: Fri, 4 Sep 2015 13:56:38 +0100 Subject: [PATCH] [thin_show_dups] take out some old assertions --- thin-provisioning/variable_chunk_stream.cc | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/thin-provisioning/variable_chunk_stream.cc b/thin-provisioning/variable_chunk_stream.cc index d2f1529..99ddc61 100644 --- a/thin-provisioning/variable_chunk_stream.cc +++ b/thin-provisioning/variable_chunk_stream.cc @@ -91,8 +91,6 @@ variable_chunk_stream::advance_one() { uint8_t *big_e; - assert(big_chunk_); - big_e = big_chunk_->mem_.end; little_b_ = little_e_; little_e_ = last_hashed_; @@ -104,12 +102,6 @@ variable_chunk_stream::advance_one() 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) { optional maybe_break = h_.step(*little_e_); little_e_++; @@ -126,11 +118,6 @@ variable_chunk_stream::advance_one() if (little_e_ == big_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; }