From 75d1d2a91376c3338510cf1e5fa10feaf8df5785 Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Mon, 31 Aug 2020 13:39:48 +0200 Subject: Get rid of hasPendingEvents() and flush() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit They are unused. Change-Id: I77383f2be45551401ed9c2f88285511134cc8b0d Reviewed-by: Tor Arne Vestbø --- src/plugins/platforms/cocoa/qcocoaeventdispatcher.mm | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'src/plugins/platforms/cocoa/qcocoaeventdispatcher.mm') 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() -- cgit v1.2.3