Remove unnecessary Mac-specific IsShownOnScreen() implementation

It ended up returning the result of the base class method anyhow, just
after doing a lot of unnecessary work, so this commit shouldn't change
anything, but should significantly speed up this function.

We may want to explore the possibility of implementing this method
natively using GetPeer()->IsVisible() later, as it could be faster than
our own implementation, but we need to ensure that this always returns
the same result as before, which might not be the case when the TLW is
in the process of being shown or hidden, so don't do this for now.

Closes https://github.com/wxWidgets/wxWidgets/pull/1911

Closes #18645.
This commit is contained in:
Vadim Zeitlin
2020-06-28 02:48:03 +02:00
parent b7bfe53bed
commit 47adeb14b9
2 changed files with 0 additions and 25 deletions

View File

@@ -72,8 +72,6 @@ public:
return OSXShowWithEffect(false, effect, timeout);
}
virtual bool IsShownOnScreen() const wxOVERRIDE;
virtual void SetFocus() wxOVERRIDE;
virtual void WarpPointer( int x, int y ) wxOVERRIDE;