Skip to content

Commit 743e0ed

Browse files
Remove unused import_path member from Node
1 parent 8d8041b commit 743e0ed

File tree

2 files changed

+0
-25
lines changed

2 files changed

+0
-25
lines changed

scene/main/node.cpp

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3436,20 +3436,6 @@ void Node::queue_free() {
34363436
}
34373437
}
34383438

3439-
void Node::set_import_path(const NodePath &p_import_path) {
3440-
#ifdef TOOLS_ENABLED
3441-
data.import_path = p_import_path;
3442-
#endif
3443-
}
3444-
3445-
NodePath Node::get_import_path() const {
3446-
#ifdef TOOLS_ENABLED
3447-
return data.import_path;
3448-
#else
3449-
return NodePath();
3450-
#endif
3451-
}
3452-
34533439
#ifdef TOOLS_ENABLED
34543440
static void _add_nodes_to_options(const Node *p_base, const Node *p_node, List<String> *r_options) {
34553441
if (p_node != p_base && !p_node->get_owner()) {
@@ -3853,9 +3839,6 @@ void Node::_bind_methods() {
38533839
ClassDB::bind_method(D_METHOD("set_editor_description", "editor_description"), &Node::set_editor_description);
38543840
ClassDB::bind_method(D_METHOD("get_editor_description"), &Node::get_editor_description);
38553841

3856-
ClassDB::bind_method(D_METHOD("_set_import_path", "import_path"), &Node::set_import_path);
3857-
ClassDB::bind_method(D_METHOD("_get_import_path"), &Node::get_import_path);
3858-
38593842
ClassDB::bind_method(D_METHOD("set_unique_name_in_owner", "enable"), &Node::set_unique_name_in_owner);
38603843
ClassDB::bind_method(D_METHOD("is_unique_name_in_owner"), &Node::is_unique_name_in_owner);
38613844

@@ -3866,8 +3849,6 @@ void Node::_bind_methods() {
38663849
ClassDB::bind_method(D_METHOD("_set_property_pinned", "property", "pinned"), &Node::set_property_pinned);
38673850
#endif
38683851

3869-
ADD_PROPERTY(PropertyInfo(Variant::NODE_PATH, "_import_path", PROPERTY_HINT_NONE, "", PROPERTY_USAGE_NO_EDITOR | PROPERTY_USAGE_INTERNAL), "_set_import_path", "_get_import_path");
3870-
38713852
{
38723853
MethodInfo mi;
38733854

scene/main/node.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -183,9 +183,6 @@ class Node : public Object {
183183
StringName name;
184184
SceneTree *tree = nullptr;
185185

186-
#ifdef TOOLS_ENABLED
187-
NodePath import_path; // Path used when imported, used by scene editors to keep tracking.
188-
#endif
189186
String editor_description;
190187

191188
Viewport *viewport = nullptr;
@@ -740,9 +737,6 @@ class Node : public Object {
740737
//hacks for speed
741738
static void init_node_hrcr();
742739

743-
void set_import_path(const NodePath &p_import_path); //path used when imported, used by scene editors to keep tracking
744-
NodePath get_import_path() const;
745-
746740
bool is_owned_by_parent() const;
747741

748742
void clear_internal_tree_resource_paths();

0 commit comments

Comments
 (0)