]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/toplvcmn.cpp
conversion warning gcc 3.3 mac
[wxWidgets.git] / src / common / toplvcmn.cpp
index 7aba62adf9b6e35f55b7b3335679e059e7438cac..71bc0468d3ba3af893e7a2248ee8560176c0c147 100644 (file)
@@ -83,16 +83,6 @@ bool wxTopLevelWindowBase::Destroy()
     // but hide it immediately
     Hide();
 
-    // also remove it from the list of parents children so that the loop in
-    // wxWindowBase::DestroyChildren() eventually terminates
-    if ( m_parent )
-    {
-        m_parent->RemoveChild(this);
-
-        // don't do it again in our dtor
-        m_parent = NULL;
-    }
-
     return TRUE;
 }