diff options
author | Anton Tarasov <anton.tarasov@jetbrains.com> | 2017-07-06 00:49:50 +0300 |
---|---|---|
committer | Anton Tarasov <anton.tarasov@jetbrains.com> | 2017-07-06 00:49:50 +0300 |
commit | bc3a9156a1b8f75f4fe0ce7e55c0647b262da96e (patch) | |
tree | 851e9d763bfd7e0dd562bcd8c29a5ba83d9e2c67 | |
parent | 8c2e766f7564a5a0edc9d77b21cc99477342d751 (diff) | |
download | jdk8u_jdk-bc3a9156a1b8f75f4fe0ce7e55c0647b262da96e.tar.gz |
JRE-415 Mistake in "Merge with jdk8u152-b00"jb8u152-b938
-rw-r--r-- | src/macosx/native/sun/osxapp/NSApplicationAWT.m | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/src/macosx/native/sun/osxapp/NSApplicationAWT.m b/src/macosx/native/sun/osxapp/NSApplicationAWT.m index 8277b1115f..5155d83429 100644 --- a/src/macosx/native/sun/osxapp/NSApplicationAWT.m +++ b/src/macosx/native/sun/osxapp/NSApplicationAWT.m @@ -349,32 +349,6 @@ AWT_ASSERT_APPKIT_THREAD; } } -/* - * Posts the block to the AppKit event queue which will be executed - * on the main AppKit loop. - * While running nested loops this event will be ignored. - */ -- (void)postRunnableEvent:(void (^)())block -{ - void (^copy)() = [block copy]; - NSInteger encode = (NSInteger) copy; - NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; - NSEvent* event = [NSEvent otherEventWithType: NSApplicationDefined - location: NSMakePoint(0,0) - modifierFlags: 0 - timestamp: 0 - windowNumber: 0 - context: nil - subtype: 777 - data1: encode - data2: 0]; - - [NSApp postEvent: event atStart: NO]; - [pool drain]; -} - - - - (void)postDummyEvent { seenDummyEventLock = [[NSConditionLock alloc] initWithCondition:NO]; dummyEventTimestamp = [NSProcessInfo processInfo].systemUptime; |