summaryrefslogtreecommitdiff
path: root/bleh_darwin.m
diff options
context:
space:
mode:
Diffstat (limited to 'bleh_darwin.m')
-rw-r--r--bleh_darwin.m17
1 files changed, 0 insertions, 17 deletions
diff --git a/bleh_darwin.m b/bleh_darwin.m
index 7bb9344..b2f0fe7 100644
--- a/bleh_darwin.m
+++ b/bleh_darwin.m
@@ -64,20 +64,3 @@ void initBleh()
s_initTrackingArea = sel_getUid("initWithRect:options:owner:userInfo:");
}
-/*
-See uitask_darwin.go: we need to synthesize a NSEvent so -[NSApplication stop:] will work. We cannot simply init the default NSEvent though (it throws an exception) so we must do it "the right way". This involves a very convoluted initializer; we'll just do it here to keep things clean on the Go side (this will only be run once anyway, on program exit).
-*/
-
-id makeDummyEvent()
-{
- return objc_msgSend(c_NSEvent, s_newEvent,
- (NSUInteger) NSApplicationDefined, /* otherEventWithType: */
- NSMakePoint(0, 0), /* location: */
- (NSUInteger) 0, /* modifierFlags: */
- (double) 0, /* timestamp: */
- (NSInteger) 0, /* windowNumber: */
- nil, /* context: */
- (short) 0, /* subtype: */
- (NSInteger) 0, /* data1: */
- (NSInteger) 0); /* data2: */
-}