From 8e9607083b7e540a8897aa8b923e7ac4f3df9b12 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Tue, 26 Aug 2014 15:39:04 -0400 Subject: Got rid of the modal queue now that it's no longer needed. --- redo/uitask_darwin.m | 5 ----- 1 file changed, 5 deletions(-) (limited to 'redo/uitask_darwin.m') diff --git a/redo/uitask_darwin.m b/redo/uitask_darwin.m index 4a2173f..e69882a 100644 --- a/redo/uitask_darwin.m +++ b/redo/uitask_darwin.m @@ -2,7 +2,6 @@ #import "objc_darwin.h" #import "_cgo_export.h" -#import "modalqueue.h" #import #define toNSWindow(x) ((NSWindow *) (x)) @@ -130,13 +129,9 @@ void uistop(void) [NSApp postEvent:e atStart:NO]; // let pending events take priority } -// we use the modal queue because dispatch_suspend()/dispatch_resume() can't be used with the main queue - // thanks to mikeash in irc.freenode.net/#macdev for suggesting the use of Grand Central Dispatch and blocks for this void issue(void *what) { - if (queueIfModal(what)) - return; dispatch_async(dispatch_get_main_queue(), ^{ doissue(what); }); -- cgit v1.2.3