summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/core/model/Node.hpp7
-rw-r--r--test/core/model/NodeTest.cpp5
2 files changed, 0 insertions, 12 deletions
diff --git a/src/core/model/Node.hpp b/src/core/model/Node.hpp
index c24aacb..68a6ec7 100644
--- a/src/core/model/Node.hpp
+++ b/src/core/model/Node.hpp
@@ -311,13 +311,6 @@ public:
bool hasName() const { return !name.empty(); }
/**
- * Sets the parent node.
- *
- * @param parent is a Handle to the parent node.
- */
- void setParent(Handle<Node> parent) { this->parent = acquire(parent); }
-
- /**
* Returns a handle to the parent node of the Node instance.
*
* @return a handle to the root node.
diff --git a/test/core/model/NodeTest.cpp b/test/core/model/NodeTest.cpp
index 2a63acc..973ce22 100644
--- a/test/core/model/NodeTest.cpp
+++ b/test/core/model/NodeTest.cpp
@@ -73,11 +73,6 @@ TEST(Node, isRoot)
ASSERT_TRUE(n1->isRoot());
ASSERT_TRUE(n2->isRoot());
ASSERT_FALSE(n3->isRoot());
-
- n2->setParent(n1);
- ASSERT_TRUE(n1->isRoot());
- ASSERT_FALSE(n2->isRoot());
- ASSERT_FALSE(n3->isRoot());
}
TEST(Node, resolveCompositaSimple)