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:
parent
9c30b806f2
commit
72f34203a0
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue