Remove unused import_path member from Node

This commit is contained in:
HolonProduction 2025-09-29 21:40:01 +02:00
parent 8d8041bd4d
commit 743e0edfd7
2 changed files with 0 additions and 25 deletions

View file

@ -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 #ifdef TOOLS_ENABLED
static void _add_nodes_to_options(const Node *p_base, const Node *p_node, List<String> *r_options) { static void _add_nodes_to_options(const Node *p_base, const Node *p_node, List<String> *r_options) {
if (p_node != p_base && !p_node->get_owner()) { 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("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("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("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); 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); ClassDB::bind_method(D_METHOD("_set_property_pinned", "property", "pinned"), &Node::set_property_pinned);
#endif #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; MethodInfo mi;

View file

@ -183,9 +183,6 @@ private:
StringName name; StringName name;
SceneTree *tree = nullptr; SceneTree *tree = nullptr;
#ifdef TOOLS_ENABLED
NodePath import_path; // Path used when imported, used by scene editors to keep tracking.
#endif
String editor_description; String editor_description;
Viewport *viewport = nullptr; Viewport *viewport = nullptr;
@ -740,9 +737,6 @@ public:
//hacks for speed //hacks for speed
static void init_node_hrcr(); 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; bool is_owned_by_parent() const;
void clear_internal_tree_resource_paths(); void clear_internal_tree_resource_paths();