diff --git a/scene/main/node.cpp b/scene/main/node.cpp index 9fe529155e5..f22c697eba1 100644 --- a/scene/main/node.cpp +++ b/scene/main/node.cpp @@ -3436,20 +3436,6 @@ void Node::queue_free() { } } -void Node::set_import_path(const NodePath &p_import_path) { -#ifdef TOOLS_ENABLED - data.import_path = p_import_path; -#endif -} - -NodePath Node::get_import_path() const { -#ifdef TOOLS_ENABLED - return data.import_path; -#else - return NodePath(); -#endif -} - #ifdef TOOLS_ENABLED static void _add_nodes_to_options(const Node *p_base, const Node *p_node, List *r_options) { if (p_node != p_base && !p_node->get_owner()) { @@ -3853,9 +3839,6 @@ void Node::_bind_methods() { ClassDB::bind_method(D_METHOD("set_editor_description", "editor_description"), &Node::set_editor_description); ClassDB::bind_method(D_METHOD("get_editor_description"), &Node::get_editor_description); - ClassDB::bind_method(D_METHOD("_set_import_path", "import_path"), &Node::set_import_path); - ClassDB::bind_method(D_METHOD("_get_import_path"), &Node::get_import_path); - ClassDB::bind_method(D_METHOD("set_unique_name_in_owner", "enable"), &Node::set_unique_name_in_owner); ClassDB::bind_method(D_METHOD("is_unique_name_in_owner"), &Node::is_unique_name_in_owner); @@ -3866,8 +3849,6 @@ void Node::_bind_methods() { ClassDB::bind_method(D_METHOD("_set_property_pinned", "property", "pinned"), &Node::set_property_pinned); #endif - ADD_PROPERTY(PropertyInfo(Variant::NODE_PATH, "_import_path", PROPERTY_HINT_NONE, "", PROPERTY_USAGE_NO_EDITOR | PROPERTY_USAGE_INTERNAL), "_set_import_path", "_get_import_path"); - { MethodInfo mi; diff --git a/scene/main/node.h b/scene/main/node.h index 35562339ab0..ac437c45bdc 100644 --- a/scene/main/node.h +++ b/scene/main/node.h @@ -183,9 +183,6 @@ private: StringName name; SceneTree *tree = nullptr; -#ifdef TOOLS_ENABLED - NodePath import_path; // Path used when imported, used by scene editors to keep tracking. -#endif String editor_description; Viewport *viewport = nullptr; @@ -740,9 +737,6 @@ public: //hacks for speed static void init_node_hrcr(); - void set_import_path(const NodePath &p_import_path); //path used when imported, used by scene editors to keep tracking - NodePath get_import_path() const; - bool is_owned_by_parent() const; void clear_internal_tree_resource_paths();