File tree 1 file changed +1
-15
lines changed
1 file changed +1
-15
lines changed Original file line number Diff line number Diff line change @@ -477,21 +477,7 @@ open class Process: NSObject {
477
477
hash: nil ,
478
478
schedule: nil ,
479
479
cancel: nil ,
480
- perform: { emptyRunLoopCallback ( $0) }
481
- )
482
-
483
- var runLoopContext = CFRunLoopSourceContext ( )
484
- runLoopContext. version = 0
485
- runLoopContext. retain = runLoopSourceRetain
486
- runLoopContext. release = runLoopSourceRelease
487
- runLoopContext. equal = processIsEqual
488
- runLoopContext. perform = emptyRunLoopCallback
489
- self . withUnretainedReference {
490
- ( refPtr: UnsafeMutablePointer < UInt8 > ) in
491
- runLoopContext. info = UnsafeMutableRawPointer ( refPtr)
492
- }
493
- self . runLoopSourceContext = runLoopContext
494
-
480
+ perform: { emptyRunLoopCallback ( $0) } )
495
481
self . runLoopSource = CFRunLoopSourceCreate ( kCFAllocatorDefault, 0 , & runLoopSourceContext!)
496
482
CFRunLoopAddSource ( CFRunLoopGetCurrent ( ) , runLoopSource, kCFRunLoopDefaultMode)
497
483
You can’t perform that action at this time.
0 commit comments