diff options
author | Lars Knoll <lars.knoll@qt.io> | 2020-08-31 13:39:48 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2020-09-06 00:17:12 +0200 |
commit | 75d1d2a91376c3338510cf1e5fa10feaf8df5785 (patch) | |
tree | d75b6d14ea3f9bb72b10c71c64b21fdb00f9fc13 /src/plugins/platforms/cocoa | |
parent | 2caa2faf01d66904b912fe1b1b443b5932d928d0 (diff) |
Get rid of hasPendingEvents() and flush()
They are unused.
Change-Id: I77383f2be45551401ed9c2f88285511134cc8b0d
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src/plugins/platforms/cocoa')
-rw-r--r-- | src/plugins/platforms/cocoa/qcocoaeventdispatcher.h | 2 | ||||
-rw-r--r-- | src/plugins/platforms/cocoa/qcocoaeventdispatcher.mm | 10 |
2 files changed, 0 insertions, 12 deletions
diff --git a/src/plugins/platforms/cocoa/qcocoaeventdispatcher.h b/src/plugins/platforms/cocoa/qcocoaeventdispatcher.h index b8d2532b8e..3226cb1b39 100644 --- a/src/plugins/platforms/cocoa/qcocoaeventdispatcher.h +++ b/src/plugins/platforms/cocoa/qcocoaeventdispatcher.h @@ -115,7 +115,6 @@ public: ~QCocoaEventDispatcher(); bool processEvents(QEventLoop::ProcessEventsFlags flags); - bool hasPendingEvents(); void registerSocketNotifier(QSocketNotifier *notifier); void unregisterSocketNotifier(QSocketNotifier *notifier); @@ -129,7 +128,6 @@ public: void wakeUp(); void interrupt(); - void flush(); static void clearCurrentThreadCocoaEventDispatcherInterruptFlag(); diff --git a/src/plugins/platforms/cocoa/qcocoaeventdispatcher.mm b/src/plugins/platforms/cocoa/qcocoaeventdispatcher.mm index 0480ec0482..bb47e933d2 100644 --- a/src/plugins/platforms/cocoa/qcocoaeventdispatcher.mm +++ b/src/plugins/platforms/cocoa/qcocoaeventdispatcher.mm @@ -288,13 +288,6 @@ void QCocoaEventDispatcher::unregisterSocketNotifier(QSocketNotifier *notifier) d->cfSocketNotifier.unregisterSocketNotifier(notifier); } -bool QCocoaEventDispatcher::hasPendingEvents() -{ - extern uint qGlobalPostedEventsCount(); - extern bool qt_is_gui_used; //qapplication.cpp - return qGlobalPostedEventsCount() || (qt_is_gui_used && !CFRunLoopIsWaiting(CFRunLoopGetMain())); -} - static bool isUserInputEvent(NSEvent* event) { switch ([event type]) { @@ -969,9 +962,6 @@ void QCocoaEventDispatcher::interrupt() d->cancelWaitForMoreEvents(); } -void QCocoaEventDispatcher::flush() -{ } - // QTBUG-56746: The behavior of processEvents() has been changed to not clear // the interrupt flag. Use this function to clear it. void QCocoaEventDispatcher::clearCurrentThreadCocoaEventDispatcherInterruptFlag() |