From 379b078bb135b29b934b59bbf01598ed60bacd76 Mon Sep 17 00:00:00 2001 From: Dmitri Naumov <github@naumov.de> Date: Tue, 18 May 2021 22:51:09 +0200 Subject: [PATCH] [GL] Remove unnecessary set function used once. --- GeoLib/SimplePolygonTree.cpp | 2 +- GeoLib/SimplePolygonTree.h | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/GeoLib/SimplePolygonTree.cpp b/GeoLib/SimplePolygonTree.cpp index 80b49439c80..9db6a5d01f5 100644 --- a/GeoLib/SimplePolygonTree.cpp +++ b/GeoLib/SimplePolygonTree.cpp @@ -64,7 +64,7 @@ void SimplePolygonTree::insertSimplePolygonTree( if (nfound) { _children.push_back(polygon_hierarchy); - polygon_hierarchy->setParent(this); + polygon_hierarchy->_parent = this; } } diff --git a/GeoLib/SimplePolygonTree.h b/GeoLib/SimplePolygonTree.h index f6c01d55bbb..c742eb9e045 100644 --- a/GeoLib/SimplePolygonTree.h +++ b/GeoLib/SimplePolygonTree.h @@ -73,12 +73,6 @@ protected: * in the _node_polygon */ std::list<SimplePolygonTree*> _children; - -private: - void setParent(SimplePolygonTree* parent) - { - _parent = parent; - } }; /** -- GitLab