Remove unnecessary check for gs_deferredFocusOut

GTKHandleDeferredFocusOut() is only ever called when gs_deferredFocusOut
is non-null, so there is no need to check for it inside this function
again.

No real changes.
This commit is contained in:
Vadim Zeitlin
2018-02-03 23:30:31 +01:00
parent fa41d06cce
commit f8674c7ff0

View File

@@ -4465,8 +4465,6 @@ void wxWindowGTK::GTKHandleDeferredFocusOut()
// NB: See GTKHandleFocusOut() for explanation. This function is called
// from either GTKHandleFocusIn() or OnInternalIdle() to process
// deferred event.
if ( gs_deferredFocusOut )
{
wxWindowGTK *win = gs_deferredFocusOut;
gs_deferredFocusOut = NULL;
@@ -4475,7 +4473,6 @@ void wxWindowGTK::GTKHandleDeferredFocusOut()
win->GetClassInfo()->GetClassName(), win, win->GetLabel());
win->GTKHandleFocusOutNoDeferring();
}
}
void wxWindowGTK::SetFocus()