From e2459479dea6a853bc180b182f1817ede4baa611 Mon Sep 17 00:00:00 2001 From: merumelu Date: Fri, 30 Aug 2019 19:02:46 +0200 Subject: Editor: remove TOOLS_ENABLED guards For code inside editor/ `#ifdef TOOLS_ENABLED` is always true so those checks are redundant. --- editor/plugins/script_text_editor.cpp | 10 ---------- editor/plugins/spatial_editor_plugin.cpp | 8 -------- 2 files changed, 18 deletions(-) (limited to 'editor/plugins') diff --git a/editor/plugins/script_text_editor.cpp b/editor/plugins/script_text_editor.cpp index bded590351..edc454ad1c 100644 --- a/editor/plugins/script_text_editor.cpp +++ b/editor/plugins/script_text_editor.cpp @@ -1436,8 +1436,6 @@ bool ScriptTextEditor::can_drop_data_fw(const Point2 &p_point, const Variant &p_ return false; } -#ifdef TOOLS_ENABLED - static Node *_find_script_node(Node *p_edited_scene, Node *p_current_node, const Ref