aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2018-09-05 22:09:51 +0200
committerTeddy Wing2018-09-05 22:09:51 +0200
commit04f9b781817751fd8cfc244a05b424e3308100b3 (patch)
treedfa2f5dd5084cc8839623d3ac1d999b267205df6
parent654160eba671d3fc4050833551e2ebe7c13235b5 (diff)
downloadCopy-Mailto-04f9b781817751fd8cfc244a05b424e3308100b3.tar.bz2
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.
-rw-r--r--CopyMailto/DefaultURLHandler.h1
-rw-r--r--CopyMailto/DefaultURLHandler.m9
2 files changed, 0 insertions, 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