From 72f34203a09949a87b04de183817379e57538831 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Fri, 13 Sep 2013 11:04:38 -0400 Subject: [PATCH] remove the case for level >= 2. Since level is a bool, this code can never execute. Also, there are no calls to tidy in the current code with values other than 0 or 1, so it's safe to do. Also it removes an error message when using clang++ --- src/zm_buffer.h | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/zm_buffer.h b/src/zm_buffer.h index 3f2343b1a..af043ae13 100644 --- a/src/zm_buffer.h +++ b/src/zm_buffer.h @@ -151,7 +151,7 @@ public: { if ( mSize == 0 ) mHead = mTail = mStorage; - else if ( level >= 1 ) + else if ( level ) { if ( (mHead-mStorage) > mSize ) { @@ -159,12 +159,6 @@ public: mHead = mStorage; mTail = mHead + mSize; } - else if ( level >= 2 ) - { - memmove( mStorage, mHead, mSize ); - mHead = mStorage; - mTail = mHead + mSize; - } } } }