]> gitweb.factorcode.org Git - factor.git/commitdiff
Remove dead code
authorSlava Pestov <slava@slava-pestovs-macbook-pro.local>
Sat, 13 Dec 2008 11:00:23 +0000 (05:00 -0600)
committerSlava Pestov <slava@slava-pestovs-macbook-pro.local>
Sat, 13 Dec 2008 11:00:23 +0000 (05:00 -0600)
basis/cocoa/application/application.factor

index a52aaedce27d226623a7e51bbb813b7caa1fef93..fb9a5f97ecca29758d37db2c24ce9b39d146f9d0 100644 (file)
@@ -1,7 +1,7 @@
 ! Copyright (C) 2006, 2008 Slava Pestov
 ! See http://factorcode.org/license.txt for BSD license.
 USING: alien alien.syntax io kernel namespaces core-foundation
-core-foundation.run-loop core-foundation.arrays
+ core-foundation.arrays
 core-foundation.data core-foundation.strings cocoa.messages
 cocoa cocoa.classes cocoa.runtime sequences threads init summary
 kernel.private assocs ;
@@ -35,13 +35,6 @@ FUNCTION: void NSBeep ( ) ;
 : with-cocoa ( quot -- )
     [ NSApp drop call ] with-autorelease-pool ; inline
 
-: next-event ( app -- event )
-    NSAnyEventMask f CFRunLoopDefaultMode 1
-    -> nextEventMatchingMask:untilDate:inMode:dequeue: ;
-
-: do-event ( app -- ? )
-    dup next-event [ dupd -> sendEvent: -> updateWindows t ] [ drop f ] if* ;
-
 : add-observer ( observer selector name object -- )
     [
         [ NSNotificationCenter -> defaultCenter ] 2dip