Skip to content

Commit

Permalink
Merge pull request #32830 from timoschwarzer/remove-redundant-compile…
Browse files Browse the repository at this point in the history
…r-directives

Remove redundant compiler directives
  • Loading branch information
akien-mga authored Oct 15, 2019
2 parents 44293db + c69ae35 commit a1033ae
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions modules/visual_script/visual_script_editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1916,8 +1916,6 @@ bool VisualScriptEditor::can_drop_data_fw(const Point2 &p_point, const Variant &
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)
Expand All @@ -1937,8 +1935,6 @@ static Node *_find_script_node(Node *p_edited_scene, Node *p_current_node, const
return NULL;
}

#endif

void VisualScriptEditor::drop_data_fw(const Point2 &p_point, const Variant &p_data, Control *p_from) {

if (p_from != graph) {
Expand Down Expand Up @@ -2456,12 +2452,8 @@ Ref<Texture> VisualScriptEditor::get_icon() {
}

bool VisualScriptEditor::is_unsaved() {
#ifdef TOOLS_ENABLED

return script->is_edited() || script->are_subnodes_edited();
#else
return false;
#endif
}

Variant VisualScriptEditor::get_edit_state() {
Expand Down

0 comments on commit a1033ae

Please sign in to comment.