From 759daa7ee594f135b577fbee681c85191c48c364 Mon Sep 17 00:00:00 2001 From: vbawol Date: Sat, 20 May 2017 22:51:28 -0500 Subject: [PATCH] remove unused functions --- .../epoch_code/compile/EPOCH_replaceWord.sqf | 16 -------- .../traders/EPOCH_buildingInteract.sqf | 39 ------------------- 2 files changed, 55 deletions(-) delete mode 100644 Sources/epoch_code/compile/EPOCH_replaceWord.sqf delete mode 100644 Sources/epoch_code/compile/traders/EPOCH_buildingInteract.sqf diff --git a/Sources/epoch_code/compile/EPOCH_replaceWord.sqf b/Sources/epoch_code/compile/EPOCH_replaceWord.sqf deleted file mode 100644 index 40fed42e..00000000 --- a/Sources/epoch_code/compile/EPOCH_replaceWord.sqf +++ /dev/null @@ -1,16 +0,0 @@ -/* - Author: Aaron Clark - EpochMod.com - - Contributors: - - Description: - Code to replace string in word - - Licence: - Arma Public License Share Alike (APL-SA) - https://www.bistudio.com/community/licenses/arma-public-license-share-alike - - Github: - https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/compile/EPOCH_replaceWord.sqf -*/ -params ["_STRING","_needle","_replace"]; -_STRING splitString _needle joinString _replace diff --git a/Sources/epoch_code/compile/traders/EPOCH_buildingInteract.sqf b/Sources/epoch_code/compile/traders/EPOCH_buildingInteract.sqf deleted file mode 100644 index 3d40c5c7..00000000 --- a/Sources/epoch_code/compile/traders/EPOCH_buildingInteract.sqf +++ /dev/null @@ -1,39 +0,0 @@ -//[[[cog import generate_private_arrays ]]] -private ["_action","_class","_condition","_disabledDoor","_displayname","_doorIndex","_index","_position","_statement","_uniqueActions","_unlock","_useractions"]; -//[[[end]]] -lbClear 1550; -_class = configFile >> "CfgVehicles" >> (typeOf EPCH); -if (isclass _class) then { - _useractions = _class >> "UserActions"; - if (isclass _useractions) then { - _uniqueActions = []; - for "_u" from 0 to (count _useractions - 1) do { - _action = _useractions select _u; - _displayname = gettext (_action >> "displayname"); - _position = gettext (_action >> "position"); - _uniqueActions pushBackUnique _position; - _condition = gettext (_action >> "condition"); - _statement = gettext (_action >> "statement"); - _condition = [_condition,"this","EPCH"] call EPOCH_replaceWord; - _statement = [_statement,"this","EPCH"] call EPOCH_replaceWord; - if (call compile _condition) then { - _index = lbAdd[1550,_displayname]; - lbSetData [1550, _index,_statement]; - }; - }; - { - _doorIndex = _forEachIndex + 1; - _disabledDoor = EPCH getVariable [format["bis_disabled_Door_%1",_doorIndex],0]; - - if (_disabledDoor == 0) then { - _index = lbAdd[1550,"Lock Door"]; - _unlock = format["EPCH setVariable ['bis_disabled_Door_%1',1,true];",_doorIndex]; - lbSetData [1550, _index,_unlock]; - } else { - _index = lbAdd[1550,"Unlock Door"]; - _unlock = format["EPCH setVariable ['bis_disabled_Door_%1',0,true];",_doorIndex]; - lbSetData [1550, _index,_unlock]; - }; - } foreach _uniqueActions; - }; -};