Skip to content

Commit d9a5cfb

Browse files
committed
Remove the only two usages of profile library
1 parent 0a7c7a2 commit d9a5cfb

File tree

4 files changed

+1
-22
lines changed

4 files changed

+1
-22
lines changed

GeneralsMD/Code/GameEngine/Source/GameClient/GUI/Shell/Shell.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@
4242
#include "GameNetwork/GameSpyOverlay.h"
4343
#include "GameNetwork/GameSpy/PeerDefsImplementation.h"
4444

45-
#include <rts/profile.h>
46-
4745
// PUBLIC DATA ////////////////////////////////////////////////////////////////////////////////////
4846
Shell *TheShell = NULL; ///< the shell singleton definition
4947

@@ -460,9 +458,6 @@ void Shell::showShell( Bool runInit )
460458

461459
if (!TheGlobalData->m_shellMapOn && m_screenCount == 0)
462460
{
463-
#ifdef RTS_PROFILE
464-
Profile::StopRange("init");
465-
#endif
466461
//else
467462
TheShell->push( AsciiString("Menus/MainMenu.wnd") );
468463
}

GeneralsMD/Code/GameEngine/Source/GameLogic/System/GameLogic.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,6 @@
109109
#include "GameNetwork/NetworkInterface.h"
110110
#include "GameNetwork/GameSpy/PersistentStorageThread.h"
111111

112-
#include <rts/profile.h>
113-
114112
DECLARE_PERF_TIMER(SleepyMaintenance)
115113

116114
#include "Common/UnitTimings.h" //Contains the DO_UNIT_TIMINGS define jba.
@@ -3636,14 +3634,7 @@ void GameLogic::update( void )
36363634
Total_Create_Render_Obj_Time=0;
36373635
Total_Load_3D_Assets=0;
36383636
#endif
3639-
3640-
#ifdef RTS_PROFILE
3641-
Profile::StartRange("map_load");
3642-
#endif
36433637
startNewGame( FALSE );
3644-
#ifdef RTS_PROFILE
3645-
Profile::StopRange("map_load");
3646-
#endif
36473638
m_startNewGame = FALSE;
36483639

36493640
#ifdef DUMP_PERF_STATS

GeneralsMD/Code/Main/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ target_link_libraries(z_generals PRIVATE
1111
binkstub
1212
comctl32
1313
core_debug
14-
core_profile
1514
d3d8
1615
d3dx8
1716
dbghelplib

GeneralsMD/Code/Main/WinMain.cpp

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,6 @@
6666
#include "GeneratedVersion.h"
6767
#include "resource.h"
6868

69-
#include <rts/profile.h>
70-
7169
#ifdef RTS_INTERNAL
7270
// for occasional debugging...
7371
//#pragma optimize("", off)
@@ -764,10 +762,6 @@ Int APIENTRY WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance,
764762
{
765763
Int exitcode = 1;
766764

767-
#ifdef RTS_PROFILE
768-
Profile::StartRange("init");
769-
#endif
770-
771765
try {
772766

773767
_set_se_translator( DumpExceptionInfo ); // Hook that allows stack trace.
@@ -817,7 +811,7 @@ Int APIENTRY WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance,
817811

818812

819813
// Force "splash image" to be loaded from a file, not a resource so same exe can be used in different localizations.
820-
#if defined RTS_DEBUG || defined RTS_INTERNAL || defined RTS_PROFILE
814+
#if defined RTS_DEBUG || defined RTS_INTERNAL
821815

822816
// check both localized directory and root dir
823817
char filePath[_MAX_PATH];

0 commit comments

Comments
 (0)