From ea50799ce24e95024df0feb35b2335c23495a37d Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Thu, 8 Dec 2022 01:32:41 +0100 Subject: [PATCH] Remove duplicate implementation `bool cocoa_open_url (const char*)` is implemented in libs/pbd/cocoa_open_uri.mm --- gtk2_ardour/cocoacarbon.mm | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/gtk2_ardour/cocoacarbon.mm b/gtk2_ardour/cocoacarbon.mm index 13fd6c7332..5fdfd2118a 100644 --- a/gtk2_ardour/cocoacarbon.mm +++ b/gtk2_ardour/cocoacarbon.mm @@ -47,20 +47,6 @@ using namespace std; using namespace PBD; -bool -cocoa_open_url (const char* uri) -{ - NSString* struri = [[NSString alloc] initWithUTF8String:uri]; - NSURL* nsurl = [[NSURL alloc] initWithString:struri]; - - bool ret = [[NSWorkspace sharedWorkspace] openURL:nsurl]; - - [struri release]; - [nsurl release]; - - return ret; -} - void set_language_preference () {