Merge pull request #3405 from acemod/3k404

remove unused non API functions
This commit is contained in:
Nicolás Badano 2016-02-25 09:55:22 -03:00
commit d037512c81
8 changed files with 0 additions and 206 deletions

View File

@ -225,7 +225,6 @@ PREP(binocularMagazine);
PREP(removeBinocularMagazine); PREP(removeBinocularMagazine);
// ACE_Debug // ACE_Debug
PREP(exportConfig);
PREP(getChildren); PREP(getChildren);
PREP(getDisplayConfigName); PREP(getDisplayConfigName);
PREP(monitor); PREP(monitor);
@ -234,10 +233,6 @@ PREP(showUser);
PREP(dumpPerformanceCounters); PREP(dumpPerformanceCounters);
PREP(dumpArray); PREP(dumpArray);
// ACE_CuratorFix
PREP(addCuratorUnloadEventhandler);
PREP(fixCrateContent);
PREP(globalEvent); PREP(globalEvent);
PREP(_handleNetEvent); PREP(_handleNetEvent);
PREP(addEventHandler); PREP(addEventHandler);

View File

@ -1,22 +0,0 @@
/*
* Author: commy2
*
* Arguments:
* Display where the Unload event was added <DISPLAY>
*
* Return Value:
* None
*
* Public: No
*/
#include "script_component.hpp"
disableSerialization;
private _dlg = ctrlParent _this;
_dlg displayAddEventHandler ["unload", {
if (_this select 1 == 1) then {
[missionnamespace getVariable ["BIS_fnc_initCuratorAttributes_target", objNull]] call FUNC(fixCrateContent);
};
}];

View File

@ -1,71 +0,0 @@
/*
* Author: commy2
* Export Config Entrys to RPT logs
*
* Arguments:
* Config Path <CONFIG>
*
* Return Value:
* None
*
* Example:
* [configFile >> "CfgAmmo"] call ace_common_fnc_exportConfig;
*
* Public: No
*/
#include "script_component.hpp"
private _fnc_logEntries = {
params ["_c", "_d"];
private _p = inheritsFrom _c;
private _t = format [["class %1: %2 {", "class %1 {"] select (configName _p == ""), configName _c, configName _p];
for "_a" from 1 to _d do {
_t = " " + _t;
};
diag_log text _t;
private _e = [];
for "_i" from 0 to (count _c - 1) do {
private _e1 = _c select _i;
private _e2 = switch (true) do {
case (isNumber _e1): {getNumber _e1};
case (isText _e1): {getText _e1};
case (isArray _e1): {getArray _e1};
case (isClass _e1): {[_e1, _d + 1] call _fnc_logEntries; false};
};
if (!(_e2 isEqualType false)) then {
if (_e2 isEqualType []) then {
_e2 = toArray str _e2;
{
if (_x == toArray "[" select 0) then {
_e2 set [_forEachIndex, toArray "{" select 0];
};
if (_x == toArray "]" select 0) then {
_e2 set [_forEachIndex, toArray "}" select 0];
};
} forEach _e2;
_e2 = toString _e2;
_t = format ["%1[] = %2;", configName _e1, _e2];
} else {
_t = format ["%1 = %2;", configName _e1, str _e2];
};
for "_a" from 0 to _d do {
_t = " " + _t;
};
diag_log text _t;
};
};
_t = "};";
for "_a" from 1 to _d do {
_t = " " + _t;
};
diag_log text _t;
diag_log text "";
};
[_this, 0] call _fnc_logEntries;

View File

@ -1,43 +0,0 @@
/*
* Author: commy2
* Fixes zeus placed crates containing buged mine detectors and ace items.
*
* Arguments:
* 0: Crate <OBJECT>
*
* Return Value:
* None
*
* Public: No
*/
#include "script_component.hpp"
params ["_crate"];
// get all weapons inside the crate
private _weapons = weaponCargo _crate;
private _items = [];
// if the "weapon" is supposed to be an item, move those from the weapon array to the item array
{
if (getText (configFile >> "CfgWeapons" >> _x >> "simulation") == "ItemMineDetector") then {
_weapons set [_forEachIndex, ""];
_items pushBack _x;
};
} forEach _weapons;
_weapons = _weapons - [""];
// exit now if everything is fine
if (count _items == 0) exitWith {};
// otherwise clear weapon cargo and re-add items and weapons
clearWeaponCargoGlobal _crate;
{
_crate addWeaponCargoGlobal [_x, 1];
} forEach _weapons;
{
_crate addItemCargoGlobal [_x, 1];
} forEach _items;

View File

@ -4,7 +4,6 @@ PREP(addPassengerActions);
PREP(addPassengersActions); PREP(addPassengersActions);
PREP(getWeaponPos); PREP(getWeaponPos);
PREP(moduleInteraction); PREP(moduleInteraction);
PREP(removeTag);
// scroll wheel hint // scroll wheel hint
PREP(showMouseHint); PREP(showMouseHint);

View File

@ -1,36 +0,0 @@
/*
* Author: commy2
* Removes tag
*
* Arguments:
* None
*
* Return value:
* None
*
* Example:
* call ace_interaction_fnc_removeTag
*
* Public: No
*/
#include "script_component.hpp"
0 spawn {
private ["_index", "_name"];
waitUntil {player getVariable ["ACE_Name", ""] != ""};
_name = player getVariable ["ACE_Name", ""];
_name = toArray _name;
_index = _name find (toArray "]" select 0);
if (_index != -1) then {
for "_index" from 0 to _index do {
_name set [_index, -1];
};
_name = _name - [-1];
_name = toString _name;
player setVariable ["ACE_Name", _name, true];
};
};

View File

@ -9,7 +9,6 @@ PREP(module);
PREP(moduleFriendlyFire); PREP(moduleFriendlyFire);
PREP(moduleRallypoint); PREP(moduleRallypoint);
PREP(moveRallypoint); PREP(moveRallypoint);
PREP(removeBody);
PREP(restoreGear); PREP(restoreGear);
PREP(showFriendlyFireMessage); PREP(showFriendlyFireMessage);
PREP(teleportToRallypoint); PREP(teleportToRallypoint);

View File

@ -1,27 +0,0 @@
/*
* Author: bux578, commy2
* Removes a given body.
*
* Arguments:
* 0: Body <OBJECT>
*
* Return Value:
* None
*
* Example:
* [corpse] call ace_respawn_fnc_removeBody
*
* Public: No
*/
#include "script_component.hpp"
params ["_body", "_forceRemove"];
private "_bodyRemoveTimer";
_bodyRemoveTimer = [GVAR(BodyRemoveTimer) max 0, 2] select _forceRemove; // could be used for SpecOps missions.
[{
// hideBody takes ~20s till body is fully underground
// a better hideBody would make this more aesthetic
deleteVehicle _this;
}, _body, _bodyRemoveTimer] call EFUNC(common,waitAndExecute);