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++

This commit is contained in:
Isaac Connor 2013-09-13 11:04:38 -04:00
parent 9c30b806f2
commit 72f34203a0
1 changed files with 1 additions and 7 deletions

View File

@ -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;
}
}
}
}