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:
commit
3a9f814303
|
@ -151,7 +151,7 @@ public:
|
||||||
{
|
{
|
||||||
if ( mSize == 0 )
|
if ( mSize == 0 )
|
||||||
mHead = mTail = mStorage;
|
mHead = mTail = mStorage;
|
||||||
else if ( level >= 1 )
|
else if ( level )
|
||||||
{
|
{
|
||||||
if ( (mHead-mStorage) > mSize )
|
if ( (mHead-mStorage) > mSize )
|
||||||
{
|
{
|
||||||
|
@ -159,12 +159,6 @@ public:
|
||||||
mHead = mStorage;
|
mHead = mStorage;
|
||||||
mTail = mHead + mSize;
|
mTail = mHead + mSize;
|
||||||
}
|
}
|
||||||
else if ( level >= 2 )
|
|
||||||
{
|
|
||||||
memmove( mStorage, mHead, mSize );
|
|
||||||
mHead = mStorage;
|
|
||||||
mTail = mHead + mSize;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue