diff --git a/addons/diagnostic/CfgFunctions.hpp b/addons/diagnostic/CfgFunctions.hpp index 044de8087..ef08f8ac1 100644 --- a/addons/diagnostic/CfgFunctions.hpp +++ b/addons/diagnostic/CfgFunctions.hpp @@ -33,12 +33,6 @@ class CfgFunctions description = "Logs a message to the RPT log."; file = "\x\cba\addons\diagnostic\fnc_log.sqf"; }; - // CBA_fnc_peek - class peek - { - description = "Peek at variable on the server To receive the variable content back, you will have to [""cba_diagnostics_receive_peak"", {_this call myFunction}] call CBA_fnc_addEventHandler;"; - file = "\x\cba\addons\diagnostic\fnc_peek.sqf"; - }; // CBA_fnc_test class test { diff --git a/addons/diagnostic/XEH_preInit.sqf b/addons/diagnostic/XEH_preInit.sqf index 5456f1693..2b2e99f0f 100644 --- a/addons/diagnostic/XEH_preInit.sqf +++ b/addons/diagnostic/XEH_preInit.sqf @@ -6,20 +6,4 @@ LOG(MSG_INIT); [QUOTE(GVAR(debug)), { _this call (uiNamespace getVariable "CBA_fnc_debug") }] call (uiNamespace getVariable "CBA_fnc_addEventHandler"); -if (SLX_XEH_MACHINE select 3) then -{ - FUNC(handle_peak) = - { - params ["_variable"]; - if (isNil _variable) then - { - [QUOTE(GVAR(receive_peak)), [_variable, nil]] call (uiNamespace getVariable "CBA_fnc_globalEvent"); - } else { - [QUOTE(GVAR(receive_peak)), [_variable, call compile _variable]] call (uiNamespace getVariable "CBA_fnc_globalEvent"); - }; - - }; - [QUOTE(GVAR(peek)), { _this call CBA_fnc_handle_peak }] call (uiNamespace getVariable "CBA_fnc_addEventHandler"); -}; - PREP(perf_loop); diff --git a/addons/diagnostic/fnc_peek.sqf b/addons/diagnostic/fnc_peek.sqf deleted file mode 100644 index 420741c21..000000000 --- a/addons/diagnostic/fnc_peek.sqf +++ /dev/null @@ -1,28 +0,0 @@ -/* ---------------------------------------------------------------------------- -Function: CBA_fnc_peek - -Description: - Peek at variable on the server. - - To receive the variable content back, you will have to - ["cba_diagnostics_receive_peak", {_this call myFunction}] call CBA_fnc_addEventHandler; - -Parameters: - _variable - string - -Returns: - nil - -Author: - Sickboy ------------------------------------------------------------------------------*/ -#include "script_component.hpp" - -SCRIPT(peek); -params ["_variable"]; - -// ---------------------------------------------------------------------------- - -[GVAR(peek), _variable] call CBA_fnc_globalEvent; - -nil;