mirror of
https://github.com/godotengine/godot.git
synced 2025-10-31 21:51:22 +00:00
Editor: remove TOOLS_ENABLED guards
For code inside editor/ `#ifdef TOOLS_ENABLED` is always true so those checks are redundant.
This commit is contained in:
parent
ba854bbc7b
commit
e2459479de
7 changed files with 1 additions and 46 deletions
|
|
@ -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<Script> &script) {
|
||||
|
||||
if (p_edited_scene != p_current_node && p_current_node->get_owner() != p_edited_scene)
|
||||
|
|
@ -1457,14 +1455,6 @@ static Node *_find_script_node(Node *p_edited_scene, Node *p_current_node, const
|
|||
return NULL;
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
static Node *_find_script_node(Node *p_edited_scene, Node *p_current_node, const Ref<Script> &script) {
|
||||
|
||||
return NULL;
|
||||
}
|
||||
#endif
|
||||
|
||||
void ScriptTextEditor::drop_data_fw(const Point2 &p_point, const Variant &p_data, Control *p_from) {
|
||||
|
||||
Dictionary d = p_data;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue