# HG changeset patch
# User Wuzzy <Wuzzy2@mail.ru>
# Date 1519137456 -3600
# Node ID 356995c8c48b1fc357777314d5b5acbcd10a8136
# Parent  3718637c14be7599332536ffd6ab2e5069398620
Lua API: Remove empty functions CampaignLock and CampaignUnlock

Those were just no-op. Better use the issue tracker for suggestions?

diff -r 3718637c14be -r 356995c8c48b 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);