diff --git a/simgear/structure/SGBinding.cxx b/simgear/structure/SGBinding.cxx index 320e13a1..1f87ca95 100644 --- a/simgear/structure/SGBinding.cxx +++ b/simgear/structure/SGBinding.cxx @@ -41,12 +41,6 @@ SGBinding::SGBinding(const SGPropertyNode* node, SGPropertyNode* root) read(node, root); } -SGBinding::~SGBinding() -{ - if(_arg && _arg->getParent()) - _arg->getParent()->removeChild(_arg->getName(), _arg->getIndex()); -} - void SGBinding::clear() { diff --git a/simgear/structure/SGBinding.hxx b/simgear/structure/SGBinding.hxx index 3574a524..ed3a951c 100644 --- a/simgear/structure/SGBinding.hxx +++ b/simgear/structure/SGBinding.hxx @@ -58,13 +58,14 @@ public: /** * Destructor. */ - virtual ~SGBinding (); + virtual ~SGBinding () = default; /** - * clear internal state of the binding back to empty. This is useful - * if you don't want the 'remove on delete' behaviour of the - * destructor. + * Clear internal state of the binding back to empty. + * + * This was particularly useful when SGBinding's destructor had its 'remove + * on delete' behaviour, however this is not the case anymore. */ void clear();