From dfa1f8dd4bbaed3fba144a5afead99a1ea102c44 Mon Sep 17 00:00:00 2001 From: ritsuka Date: Thu, 22 Jan 2015 10:30:26 +0000 Subject: MacGui: move the application delegate to its own class. Removed the "Open Source (Title Specific)" menu item, now integrated in the standard open panel. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6784 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- macosx/main.mm | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'macosx/main.mm') diff --git a/macosx/main.mm b/macosx/main.mm index 1d7d6ed69..961d1fa78 100644 --- a/macosx/main.mm +++ b/macosx/main.mm @@ -5,24 +5,6 @@ It may be used under the terms of the GNU General Public License. */ #import -#include "hb.h" - -static void hb_error_handler(const char *errmsg) -{ - NSString *error = @(errmsg); - - if (error && [[NSUserDefaults standardUserDefaults] boolForKey:@"HBDebugAlert"]) - { - dispatch_async(dispatch_get_main_queue(), ^{ - NSAlert *alert = [[NSAlert alloc] init]; - [alert setMessageText:NSLocalizedString(@"Internal Error.", @"")]; - [alert runModal]; - [alert release]; - }); - } - - fprintf(stderr, "error: %s\n", errmsg); -} int main(int argc, const char **argv) { @@ -39,8 +21,5 @@ int main(int argc, const char **argv) action.sa_handler = SIG_IGN; sigaction(SIGINT, &action, NULL); - hb_global_init(); - hb_register_error_handler(&hb_error_handler); - return NSApplicationMain(argc, argv); } -- cgit v1.2.3