replaced UNUSED and assert combination by a fixed up assert macro - thanks luis! :)

This commit is contained in:
Thomas Fischer 2014-03-15 12:50:38 +01:00
parent 2844ab6912
commit 489106ae5e
19 changed files with 3 additions and 26 deletions

View file

@ -407,7 +407,6 @@ public:
{
AssertFatal(IsPlaying(), "Journal::Read - not playing right now.");
bool r = mFile->read(v);
TORQUE_UNUSED(r);
AssertFatal(r, "Journal::Read - failed to read!");
}
@ -430,7 +429,6 @@ public:
{
AssertFatal(IsRecording(), "Journal::Write - not recording right now.");
bool r = mFile->write(v);
TORQUE_UNUSED(r);
AssertFatal(r, "Journal::Write - failed to write!");
}

View file

@ -506,7 +506,6 @@ void* String::StringData::operator new( size_t size, U32 len )
void String::StringData::operator delete(void *ptr)
{
StringData* sub = static_cast<StringData *>(ptr);
TORQUE_UNUSED(sub);
AssertFatal( sub->mRefCount == 0, "StringData::delete() - invalid refcount" );
#ifdef TORQUE_DEBUG

View file

@ -436,7 +436,6 @@ bool ZipSubWStream::_write(const U32 numBytes, const void *pBuffer)
}
S32 retVal = deflate(m_pZipStream, Z_NO_FLUSH);
TORQUE_UNUSED(retVal);
AssertFatal(retVal != Z_BUF_ERROR, "ZipSubWStream::_write: invalid buffer");
}