Skip to content

Commit 2a902e4

Browse files
Remove dead function: UnregisterConsoleCommands
1 parent e549691 commit 2a902e4

File tree

3 files changed

+0
-22
lines changed

3 files changed

+0
-22
lines changed

Code/CryGame/Game.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,6 @@ class CGame :
211211
// These funcs live in GameCVars.cpp
212212
virtual void RegisterConsoleVars();
213213
virtual void RegisterConsoleCommands();
214-
virtual void UnregisterConsoleCommands();
215214

216215
virtual void RegisterGameObjectEvents();
217216

Code/CryGame/GameCVars.cpp

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -209,19 +209,6 @@ void CGame::RegisterConsoleCommands()
209209
#undef COMMAND_REGISTERLIST
210210
}
211211

212-
//------------------------------------------------------------------------
213-
void CGame::UnregisterConsoleCommands()
214-
{
215-
assert(m_pConsole);
216-
217-
#define UNREGISTER_COMMAND
218-
#include "GameCvarsLib.h"
219-
#undef UNREGISTER_COMMAND
220-
221-
// variables from CHUDCommon
222-
m_pConsole->RemoveCommand("ShowGODMode");
223-
}
224-
225212
//------------------------------------------------------------------------
226213
void CGame::CmdLastInv(IConsoleCmdArgs* pArgs)
227214
{

Code/CryGame/GameCvarsLib.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,6 @@
3030
#define COMMAND( name, ConsoleCommandFunc_OR_scriptFunc, flags, help ) m_pConsole->AddCommand( name, ConsoleCommandFunc_OR_scriptFunc, flags, help )
3131
#endif
3232

33-
#ifdef UNREGISTER_COMMAND
34-
#undef COMMAND
35-
#define COMMAND( name, ConsoleCommandFunc_OR_scriptFunc, flags, help ) m_pConsole->RemoveCommand( name )
36-
#endif
37-
3833

3934
/*************************************************************************
4035
-------------------------------- CVARS -----------------------------------
@@ -565,8 +560,6 @@ COMMAND("startNextMapVoting", CmdStartNextMapVoting, VF_RESTRICTEDMODE, "Initiat
565560

566561
COMMAND("g_battleDust_reload", CmdBattleDustReload, 0, "Reload the battle dust parameters xml");
567562

568-
// TODO: Also for unregister?
569-
#ifdef COMMAND_REGISTERLIST
570563
COMMAND("lastinv", CmdLastInv, 0, "Selects last inventory item used.");
571564
COMMAND("gotoe", "local e=System.GetEntityByName(%1); if (e) then g_localActor:SetWorldPos(e:GetWorldPos()); end", VF_CHEAT, "Sets current player position.");
572565

@@ -576,7 +569,6 @@ COMMAND("join_game", CmdJoinGame, VF_RESTRICTEDMODE, "Enter the current ongoing
576569

577570
COMMAND("dumpnt", CmdDumpItemNameTable, 0, "Dump ItemString table.");
578571
COMMAND("preloadforstats", "PreloadForStats()", VF_CHEAT, "Preload multiplayer assets for memory statistics.");
579-
#endif
580572

581573
#undef GAMECVAR
582574
#undef INT_GAMECVAR

0 commit comments

Comments
 (0)