Merge pull request #572 from ZoneMinder/buffer_cleanup

remove the case for level >= 2.  Since level is a bool, this code can ne...
This commit is contained in:
Andrew Bauer 2014-11-13 15:47:37 -06:00
commit 3a9f814303
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;
}
}
}
}