summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXEvent.c
diff options
context:
space:
mode:
authormarc_culler <marc.culler@gmail.com>2020-07-15 20:16:47 (GMT)
committermarc_culler <marc.culler@gmail.com>2020-07-15 20:16:47 (GMT)
commit4819d3849f45e832a8b26c7906c36f66472ef3b9 (patch)
treeb522a0490ce6722b320e2d240f6e8c66d23e158b /macosx/tkMacOSXEvent.c
parent4722f9f501efe0141837f64c3c63cc13705396e5 (diff)
downloadtk-4819d3849f45e832a8b26c7906c36f66472ef3b9.zip
tk-4819d3849f45e832a8b26c7906c36f66472ef3b9.tar.gz
tk-4819d3849f45e832a8b26c7906c36f66472ef3b9.tar.bz2
macOS: remove unneeded code observed in [7ebdd17974], remove tkMacOSXFlushWindows, make XSync do nothing except process timer events.
Diffstat (limited to 'macosx/tkMacOSXEvent.c')
-rw-r--r--macosx/tkMacOSXEvent.c35
1 files changed, 0 insertions, 35 deletions
diff --git a/macosx/tkMacOSXEvent.c b/macosx/tkMacOSXEvent.c
index c543b8d..31a7663 100644
--- a/macosx/tkMacOSXEvent.c
+++ b/macosx/tkMacOSXEvent.c
@@ -104,43 +104,8 @@ enum {
return processedEvent;
}
@end
-
#pragma mark -
-
-/*
- *----------------------------------------------------------------------
- *
- * TkMacOSXFlushWindows --
- *
- * This routine is a stub called by XSync, which is called during the Tk
- * update command. The language specification does not require that the
- * update command be synchronous but many of the tests implicitly assume
- * that it is. It is definitely asynchronous on macOS since many idle
- * tasks are run inside of the drawRect method of a window's contentView,
- * which will not be called until after this function returns.
- *
- * Results:
- * None.
- *
- * Side effects: Processes all pending idle events then calls the display
- * method of each visible window.
- *
- *----------------------------------------------------------------------
- */
-
-MODULE_SCOPE void
-TkMacOSXFlushWindows(void)
-{
- if (Tk_GetNumMainWindows() == 0) {
- return;
- }
- while (Tcl_DoOneEvent(TCL_IDLE_EVENTS|TCL_TIMER_EVENTS|TCL_DONT_WAIT)){}
- for (NSWindow *w in [NSApp orderedWindows]) {
- [w display];
- }
-}
-
/*
* Local Variables:
* mode: objc