Skip to content

Commit

Permalink
Delete lua_help console command and related script engine function.
Browse files Browse the repository at this point in the history
  • Loading branch information
nitrocaster committed Dec 11, 2015
1 parent d6af040 commit 2acea69
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 18 deletions.
7 changes: 0 additions & 7 deletions src/xrGame/console_commands.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1118,12 +1118,6 @@ class CCC_PHFps : public IConsole_Command {

#ifdef DEBUG

struct CCC_LuaHelp : public IConsole_Command {
CCC_LuaHelp(LPCSTR N) : IConsole_Command(N) { bEmptyArgsHandled = true; };

virtual void Execute(LPCSTR args) { GlobalEnv.ScriptEngine->PrintHelp(); }
};

struct CCC_ShowSmartCastStats : public IConsole_Command {
CCC_ShowSmartCastStats(LPCSTR N) : IConsole_Command(N) { bEmptyArgsHandled = true; };

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

#ifdef DEBUG
CMD1(CCC_LuaHelp, "lua_help");
CMD1(CCC_ShowSmartCastStats, "show_smart_cast_stats");
CMD1(CCC_ClearSmartCastStats, "clear_smart_cast_stats");

Expand Down
10 changes: 0 additions & 10 deletions src/xrScriptEngine/script_engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1319,16 +1319,6 @@ static void strreplaceall(xr_string &str, LPCSTR what, LPCSTR to)
str.replace(A-str.c_str(), S_len, to);
}

void CScriptEngine::PrintHelp()
{
// XXX: implement symbol dumper
}

#else

void CScriptEngine::PrintHelp()
{ Msg("! Release build doesn't support lua-help :("); }

#endif

CScriptProcess *CScriptEngine::CreateScriptProcess(shared_str name, shared_str scripts)
Expand Down
1 change: 0 additions & 1 deletion src/xrScriptEngine/script_engine.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,6 @@ class XRSCRIPTENGINE_API CScriptEngine
#endif
void collect_all_garbage();
static u32 GetMemoryUsage();
void PrintHelp();

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

0 comments on commit 2acea69

Please sign in to comment.