Skip to content

Commit

Permalink
In fact, the log is created and destroyed by CLocatorAPI.
Browse files Browse the repository at this point in the history
  • Loading branch information
intorr committed Mar 24, 2018
1 parent bf5ed0d commit 35752b0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
6 changes: 1 addition & 5 deletions src/xrCore/log.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Lock logCS(MUTEX_PROFILE_ID(log));
#else // CONFIG_PROFILE_LOCKS
Lock logCS;
#endif // CONFIG_PROFILE_LOCKS
xr_vector<xr_string> LogFile;
xr_vector<xr_string> LogFile(1000);
LogCallback LogCB = 0;

void FlushLog()
Expand Down Expand Up @@ -183,10 +183,6 @@ LogCallback SetLogCB(const LogCallback& cb)
}

LPCSTR log_name() { return (log_file_name); }
void InitLog()
{
LogFile.reserve(1000);
}

void CreateLog(BOOL nl)
{
Expand Down
1 change: 0 additions & 1 deletion src/xrCore/xrCore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ void xrCore::Initialize(pcstr _ApplicationName, LogCallback cb, bool init_fs, pc

Memory._initialize();

InitLog();
Msg("%s %s build %d, %s\n", "OpenXRay", GetBuildConfiguration(), buildId, buildDate);
Msg("command line %s\n", Params);
_initialize_cpu();
Expand Down

0 comments on commit 35752b0

Please sign in to comment.