From 04f9b781817751fd8cfc244a05b424e3308100b3 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Wed, 5 Sep 2018 22:09:51 +0200 Subject: Remove unused `saveDefaultURLHandler` No longer planning on using this method. Ideally there would be a way to save and restore the old default "mailto" handler bundle identifier, but that's just too much of a pain and I don't want to bother. --- CopyMailto/DefaultURLHandler.h | 1 - CopyMailto/DefaultURLHandler.m | 9 --------- 2 files changed, 10 deletions(-) diff --git a/CopyMailto/DefaultURLHandler.h b/CopyMailto/DefaultURLHandler.h index fb54e9e..dc09ffc 100644 --- a/CopyMailto/DefaultURLHandler.h +++ b/CopyMailto/DefaultURLHandler.h @@ -11,6 +11,5 @@ @interface DefaultURLHandler : NSObject + (OSStatus)setDefaultURLHandler; -+ (void)saveDefaultURLHandler; @end diff --git a/CopyMailto/DefaultURLHandler.m b/CopyMailto/DefaultURLHandler.m index 123ad7b..c2295f3 100644 --- a/CopyMailto/DefaultURLHandler.m +++ b/CopyMailto/DefaultURLHandler.m @@ -24,13 +24,4 @@ return status; } -+ (void)saveDefaultURLHandler { - CFStringRef mailto = (CFStringRef)@"mailto"; - CFStringRef bundle_identifier = LSCopyDefaultHandlerForURLScheme(mailto); - NSLog(@"%@", bundle_identifier); - - CFRelease(mailto); - CFRelease(bundle_identifier); -} - @end -- cgit v1.2.3