diff options
author | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2015-01-14 22:04:08 +0100 |
---|---|---|
committer | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2015-01-14 22:04:08 +0100 |
commit | a9c258d1dabcc1560e4a0a64621b78b5eee17f05 (patch) | |
tree | 38b53badfa2057885ef1956e8d8eba6ded3b7ff4 | |
parent | fda708058907c6cfb803c883f1505c2cde7057a6 (diff) |
Removed not needed Node.setParent method
-rw-r--r-- | src/core/model/Node.hpp | 7 | ||||
-rw-r--r-- | test/core/model/NodeTest.cpp | 5 |
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) |