Lua API: Remove empty functions CampaignLock and CampaignUnlock
authorWuzzy <Wuzzy2@mail.ru>
Tue, 20 Feb 2018 15:37:36 +0100
changeset 13038 356995c8c48b
parent 13037 3718637c14be
child 13039 aed4b25ff242
Lua API: Remove empty functions CampaignLock and CampaignUnlock Those were just no-op. Better use the issue tracker for suggestions?
hedgewars/uScript.pas
--- a/hedgewars/uScript.pas	Tue Feb 20 15:31:47 2018 +0100
+++ b/hedgewars/uScript.pas	Tue Feb 20 15:37:36 2018 +0100
@@ -649,24 +649,6 @@
     lc_addcaption:= 0;
 end;
 
-function lc_campaignlock(L : Plua_State) : LongInt; Cdecl;
-begin
-    if CheckLuaParamCount(L, 1, 'CampaignLock', 'TODO') then
-        begin
-        // TODO
-        end;
-    lc_campaignlock:= 0;
-end;
-
-function lc_campaignunlock(L : Plua_State) : LongInt; Cdecl;
-begin
-    if CheckLuaParamCount(L, 1, 'CampaignUnlock', 'TODO') then
-        begin
-        // TODO
-        end;
-    lc_campaignunlock:= 0;
-end;
-
 function lc_spawnfakehealthcrate(L: Plua_State) : LongInt; Cdecl;
 var gear: PGear;
 begin
@@ -3845,8 +3827,6 @@
 lua_register(luaState, _P'HogSay', @lc_hogsay);
 lua_register(luaState, _P'SwitchHog', @lc_switchhog);
 lua_register(luaState, _P'HogTurnLeft', @lc_hogturnleft);
-lua_register(luaState, _P'CampaignLock', @lc_campaignlock);
-lua_register(luaState, _P'CampaignUnlock', @lc_campaignunlock);
 lua_register(luaState, _P'GetGearElasticity', @lc_getgearelasticity);
 lua_register(luaState, _P'SetGearElasticity', @lc_setgearelasticity);
 lua_register(luaState, _P'GetGearFriction', @lc_getgearfriction);