Remove more unused things from CryCommon and CrySystem. (#709)
Lots of unrelated removals, I basically tried to remove everything exposed via gEnv that isn't used anymore, and following the threads found a few other things to remove also.
This commit is contained in:
@@ -920,13 +920,7 @@ bool CLog::LogToMainThread(const char* szString, ELogType logType, bool bAdd, SL
|
||||
msg.bAdd = bAdd;
|
||||
msg.destination = destination;
|
||||
msg.logType = logType;
|
||||
// don't try to store the log message for later in case of out of memory, since then its very likely that this allocation
|
||||
// also fails and results in a stack overflow. This way we should at least get a out of memory on-screen message instead of
|
||||
// a not obvious crash
|
||||
if ((gEnv) && (gEnv->bIsOutOfMemory == false))
|
||||
{
|
||||
m_threadSafeMsgQueue.push(msg);
|
||||
}
|
||||
m_threadSafeMsgQueue.push(msg);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
@@ -1448,8 +1442,6 @@ void CLog::UpdateLoadingScreen(const char* szFormat, ...)
|
||||
|
||||
if (CryGetCurrentThreadId() == m_nMainThreadId)
|
||||
{
|
||||
((CSystem*)m_pSystem)->UpdateLoadingScreen();
|
||||
|
||||
#ifndef LINUX
|
||||
// Take this opportunity to update streaming engine.
|
||||
if (IStreamEngine* pStreamEngine = GetISystem()->GetStreamEngine())
|
||||
|
||||
Reference in New Issue
Block a user