From a9c258d1dabcc1560e4a0a64621b78b5eee17f05 Mon Sep 17 00:00:00 2001 From: Andreas Stöckel Date: Wed, 14 Jan 2015 22:04:08 +0100 Subject: Removed not needed Node.setParent method --- src/core/model/Node.hpp | 7 ------- test/core/model/NodeTest.cpp | 5 ----- 2 files changed, 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 @@ -310,13 +310,6 @@ public: */ bool hasName() const { return !name.empty(); } - /** - * Sets the parent node. - * - * @param parent is a Handle to the parent node. - */ - void setParent(Handle parent) { this->parent = acquire(parent); } - /** * Returns a handle to the parent node of the Node instance. * 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) -- cgit v1.2.3