Skip to content

Commit 35752b0

Browse files
committed
In fact, the log is created and destroyed by CLocatorAPI.
1 parent bf5ed0d commit 35752b0

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

src/xrCore/log.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Lock logCS(MUTEX_PROFILE_ID(log));
1818
#else // CONFIG_PROFILE_LOCKS
1919
Lock logCS;
2020
#endif // CONFIG_PROFILE_LOCKS
21-
xr_vector<xr_string> LogFile;
21+
xr_vector<xr_string> LogFile(1000);
2222
LogCallback LogCB = 0;
2323

2424
void FlushLog()
@@ -183,10 +183,6 @@ LogCallback SetLogCB(const LogCallback& cb)
183183
}
184184

185185
LPCSTR log_name() { return (log_file_name); }
186-
void InitLog()
187-
{
188-
LogFile.reserve(1000);
189-
}
190186

191187
void CreateLog(BOOL nl)
192188
{

src/xrCore/xrCore.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ void xrCore::Initialize(pcstr _ApplicationName, LogCallback cb, bool init_fs, pc
5757

5858
Memory._initialize();
5959

60-
InitLog();
6160
Msg("%s %s build %d, %s\n", "OpenXRay", GetBuildConfiguration(), buildId, buildDate);
6261
Msg("command line %s\n", Params);
6362
_initialize_cpu();

0 commit comments

Comments
 (0)