Remove useless check for NULL in wxFindWindowRecursively().

This is an internal function which is only ever called with non-NULL window.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78492 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2015-02-15 00:01:47 +00:00
parent 22f951fb74
commit 8b525fd1be

View File

@@ -1912,8 +1912,6 @@ wxWindow *wxFindWindowRecursively(const wxWindow *parent,
long id,
wxFindWindowCmp cmp)
{
if ( parent )
{
// see if this is the one we're looking for
if ( (*cmp)(parent, label, id) )
return (wxWindow *)parent;
@@ -1929,7 +1927,6 @@ wxWindow *wxFindWindowRecursively(const wxWindow *parent,
if (retwin)
return retwin;
}
}
// Not found
return NULL;