summaryrefslogtreecommitdiffstats
path: root/macosx/main.mm
diff options
context:
space:
mode:
Diffstat (limited to 'macosx/main.mm')
-rw-r--r--macosx/main.mm21
1 files changed, 0 insertions, 21 deletions
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 <Cocoa/Cocoa.h>
-#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);
}