Remove wrongly exposed SetParent method.

This commit is contained in:
Jonathan Beck
2009-11-10 18:30:43 +01:00
parent 84596548e5
commit 0f92ed12ff
6 changed files with 23 additions and 20 deletions
+15
View File
@@ -70,5 +70,20 @@ std::vector<char> Structure::ToBin()
return ret;
}
void Structure::UpdateNodeParent(Node* node)
{
//Unlink node first
if ( NULL != node->_parent )
{
plist_type type = plist_get_node_type(node->_parent);
if (PLIST_ARRAY ==type || PLIST_DICT == type )
{
Structure* s = static_cast<Structure*>(node->_parent);
s->Remove(node);
}
}
node->_parent = this;
}
};