mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-22 04:45:31 +00:00
replaced UNUSED and assert combination by a fixed up assert macro - thanks luis! :)
This commit is contained in:
parent
2844ab6912
commit
489106ae5e
19 changed files with 3 additions and 26 deletions
|
|
@ -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!");
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue