diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2018-09-29 23:51:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-29 23:51:17 +0200 |
commit | 0378a9ba80dc5083bbafa4a216ed70ea5d450c03 (patch) | |
tree | a156074f100c479eb49c5ac9aa6fce591eefc028 /core/script_debugger_remote.cpp | |
parent | 9768ce5763cd0fdd8c17c8f052e1c65036517768 (diff) | |
parent | 8b2688786f4c294397b2fc9aaa9e2aab1c7c074e (diff) | |
download | redot-engine-0378a9ba80dc5083bbafa4a216ed70ea5d450c03.tar.gz |
Merge pull request #22520 from akien-mga/fix-warnings
Fix warning about functions defined but not used [-Wunused-function]
Diffstat (limited to 'core/script_debugger_remote.cpp')
-rw-r--r-- | core/script_debugger_remote.cpp | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/core/script_debugger_remote.cpp b/core/script_debugger_remote.cpp index 00a86d11bd..388e3b77a3 100644 --- a/core/script_debugger_remote.cpp +++ b/core/script_debugger_remote.cpp @@ -98,36 +98,6 @@ Error ScriptDebuggerRemote::connect_to_host(const String &p_host, uint16_t p_por return OK; } -static int _ScriptDebuggerRemote_found_id = 0; -static Object *_ScriptDebuggerRemote_find = NULL; -static void _ScriptDebuggerRemote_debug_func(Object *p_obj) { - - if (_ScriptDebuggerRemote_find == p_obj) { - _ScriptDebuggerRemote_found_id = p_obj->get_instance_id(); - } -} - -static ObjectID safe_get_instance_id(const Variant &p_v) { - - Object *o = p_v; - if (o == NULL) - return 0; - else { - - REF r = p_v; - if (r.is_valid()) { - - return r->get_instance_id(); - } else { - - _ScriptDebuggerRemote_found_id = 0; - _ScriptDebuggerRemote_find = NULL; - ObjectDB::debug_objects(_ScriptDebuggerRemote_debug_func); - return _ScriptDebuggerRemote_found_id; - } - } -} - void ScriptDebuggerRemote::_put_variable(const String &p_name, const Variant &p_variable) { packet_peer_stream->put_var(p_name); |