Skip to content

Commit 2acea69

Browse files
author
nitrocaster
committed
Delete lua_help console command and related script engine function.
1 parent d6af040 commit 2acea69

File tree

3 files changed

+0
-18
lines changed

3 files changed

+0
-18
lines changed

src/xrGame/console_commands.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1118,12 +1118,6 @@ class CCC_PHFps : public IConsole_Command {
11181118

11191119
#ifdef DEBUG
11201120

1121-
struct CCC_LuaHelp : public IConsole_Command {
1122-
CCC_LuaHelp(LPCSTR N) : IConsole_Command(N) { bEmptyArgsHandled = true; };
1123-
1124-
virtual void Execute(LPCSTR args) { GlobalEnv.ScriptEngine->PrintHelp(); }
1125-
};
1126-
11271121
struct CCC_ShowSmartCastStats : public IConsole_Command {
11281122
CCC_ShowSmartCastStats(LPCSTR N) : IConsole_Command(N) { bEmptyArgsHandled = true; };
11291123

@@ -1963,7 +1957,6 @@ CMD4(CCC_Integer, "hit_anims_tune", &tune_hit_anims, 0, 1);
19631957
CMD3(CCC_Mask, "g_important_save", &psActorFlags, AF_IMPORTANT_SAVE);
19641958

19651959
#ifdef DEBUG
1966-
CMD1(CCC_LuaHelp, "lua_help");
19671960
CMD1(CCC_ShowSmartCastStats, "show_smart_cast_stats");
19681961
CMD1(CCC_ClearSmartCastStats, "clear_smart_cast_stats");
19691962

src/xrScriptEngine/script_engine.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1319,16 +1319,6 @@ static void strreplaceall(xr_string &str, LPCSTR what, LPCSTR to)
13191319
str.replace(A-str.c_str(), S_len, to);
13201320
}
13211321

1322-
void CScriptEngine::PrintHelp()
1323-
{
1324-
// XXX: implement symbol dumper
1325-
}
1326-
1327-
#else
1328-
1329-
void CScriptEngine::PrintHelp()
1330-
{ Msg("! Release build doesn't support lua-help :("); }
1331-
13321322
#endif
13331323

13341324
CScriptProcess *CScriptEngine::CreateScriptProcess(shared_str name, shared_str scripts)

src/xrScriptEngine/script_engine.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,6 @@ class XRSCRIPTENGINE_API CScriptEngine
182182
#endif
183183
void collect_all_garbage();
184184
static u32 GetMemoryUsage();
185-
void PrintHelp();
186185

187186
void initialize_lua_studio(lua_State *state, cs::lua_studio::world *&world, lua_studio_engine *&engine);
188187
void finalize_lua_studio(lua_State *state, cs::lua_studio::world *&world, lua_studio_engine *&engine);

0 commit comments

Comments
 (0)