Removed the stray applicationShouldTerminate: stuff from bleh_darwin.m. (delegateuitask_darwin.m has it already.)

This commit is contained in:
Pietro Gagliardi 2014-05-15 20:55:55 -04:00
parent 688121146c
commit 999b553e39
2 changed files with 0 additions and 20 deletions

View File

@ -188,19 +188,3 @@ void objc_setFont(id what, unsigned int csize)
objc_msgSend(what, s_setFont,
objc_msgSend(c_NSFont, s_systemFontOfSize, size));
}
/*
-[NSApplicationDelegate applicationShouldTerminate] used to return a BOOL, but now returns a NSApplicationTerminateReply, which is a NSUInteger; hence, here.
*/
extern void appDelegate_applicationShouldTerminate();
static NSApplicationTerminateReply __appDelegate_applicationShouldTerminate(id self, SEL sel, id app)
{
appDelegate_applicationShouldTerminate();
return NSTerminateCancel; // don't quit
}
void *_appDelegate_applicationShouldTerminate = (void *) __appDelegate_applicationShouldTerminate;
char *encodedTerminateReply = @encode(NSApplicationTerminateReply);

View File

@ -61,12 +61,8 @@ extern struct xpoint getTranslatedEventPoint(id, id);
/* for objc_darwin.go */
extern char *encodedNSRect;
extern char *encodedTerminateReply;
/* for sysdata_darwin.go */
extern void objc_setFont(id, unsigned int);
/* for delegate_darwin.go */
extern void *_appDelegate_applicationShouldTerminate;
#endif