Don't compile wxGetSelectedButtonInGroup() if it's unused

Now that this function is static, not using it results in warnings when
building the ports not using it (e.g. wxX11).
This commit is contained in:
Vadim Zeitlin
2020-09-21 20:37:37 +02:00
parent 09060ed262
commit 808ff104dc

View File

@@ -237,7 +237,7 @@ void wxControlContainer::SetLastFocus(wxWindow *win)
// The following functions is used by wxSetFocusToChild() // The following functions is used by wxSetFocusToChild()
// -------------------------------------------------------------------- // --------------------------------------------------------------------
#if wxUSE_RADIOBTN #if defined(USE_RADIOBTN_NAV)
namespace namespace
{ {
@@ -268,7 +268,7 @@ wxRadioButton* wxGetSelectedButtonInGroup(const wxRadioButton *btn)
} // anonymous namespace } // anonymous namespace
#endif // wxUSE_RADIOBTN #endif // USE_RADIOBTN_NAV
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// Keyboard handling - this is the place where the TAB traversal logic is // Keyboard handling - this is the place where the TAB traversal logic is