diff --git a/contrib/include/wx/xrc/xmlres.h b/contrib/include/wx/xrc/xmlres.h index b936c1b7bc..d0d6a831cd 100644 --- a/contrib/include/wx/xrc/xmlres.h +++ b/contrib/include/wx/xrc/xmlres.h @@ -115,10 +115,6 @@ public: // Destructor. ~wxXmlResource(); - // Gives access to the first root node for - // direct manipulation or querying - wxXmlNode *GetFirstRoot(); - // Loads resources from XML files that match given filemask. // This method understands VFS (see filesys.h). bool Load(const wxString& filemask); diff --git a/contrib/src/xrc/xmlres.cpp b/contrib/src/xrc/xmlres.cpp index b8fe981d98..892f21d9c5 100644 --- a/contrib/src/xrc/xmlres.cpp +++ b/contrib/src/xrc/xmlres.cpp @@ -146,17 +146,6 @@ void wxXmlResource::ClearHandlers() } -wxXmlNode *wxXmlResource::GetFirstRoot() -{ - UpdateResources(); //ensure everything is up-to-date - - if (m_data.GetCount() == 0) return NULL; - - if (m_data[0].Doc == NULL) return NULL; - - return m_data[0].Doc->GetRoot(); -} - wxMenu *wxXmlResource::LoadMenu(const wxString& name) { return (wxMenu*)CreateResFromNode(FindResource(name, wxT("wxMenu")), NULL, NULL); diff --git a/include/wx/xrc/xmlres.h b/include/wx/xrc/xmlres.h index b936c1b7bc..d0d6a831cd 100644 --- a/include/wx/xrc/xmlres.h +++ b/include/wx/xrc/xmlres.h @@ -115,10 +115,6 @@ public: // Destructor. ~wxXmlResource(); - // Gives access to the first root node for - // direct manipulation or querying - wxXmlNode *GetFirstRoot(); - // Loads resources from XML files that match given filemask. // This method understands VFS (see filesys.h). bool Load(const wxString& filemask); diff --git a/src/xrc/xmlres.cpp b/src/xrc/xmlres.cpp index b8fe981d98..892f21d9c5 100644 --- a/src/xrc/xmlres.cpp +++ b/src/xrc/xmlres.cpp @@ -146,17 +146,6 @@ void wxXmlResource::ClearHandlers() } -wxXmlNode *wxXmlResource::GetFirstRoot() -{ - UpdateResources(); //ensure everything is up-to-date - - if (m_data.GetCount() == 0) return NULL; - - if (m_data[0].Doc == NULL) return NULL; - - return m_data[0].Doc->GetRoot(); -} - wxMenu *wxXmlResource::LoadMenu(const wxString& name) { return (wxMenu*)CreateResFromNode(FindResource(name, wxT("wxMenu")), NULL, NULL);