diff options
| author | Teddy Wing | 2018-10-27 05:40:34 +0200 | 
|---|---|---|
| committer | Teddy Wing | 2018-10-27 05:40:34 +0200 | 
| commit | cd5b74d2f66c9ad916a216a636769789d5a0354d (patch) | |
| tree | 97a3d442f10eb3ab808b7c676d67888def509594 | |
| parent | 33b72564206fe75b4433a82432676f8e05ccfbb5 (diff) | |
| download | DomeKey-cd5b74d2f66c9ad916a216a636769789d5a0354d.tar.bz2 | |
Mappings: Remove old unused code
* The protocol definition was for an `NSXPCConnection`
* Remove the XPCConnection method as we're using BSD notifications
  instead
| -rw-r--r-- | DomeKey/Mappings.h | 6 | ||||
| -rw-r--r-- | DomeKey/Mappings.m | 10 | 
2 files changed, 0 insertions, 16 deletions
| diff --git a/DomeKey/Mappings.h b/DomeKey/Mappings.h index b2cea20..136dc87 100644 --- a/DomeKey/Mappings.h +++ b/DomeKey/Mappings.h @@ -9,12 +9,6 @@  #import <Foundation/Foundation.h>  #include <notify.h> -@protocol Reloadable - -- (void)reload; - -@end -  @interface Mappings : NSObject  + (void)observeReloadNotification; diff --git a/DomeKey/Mappings.m b/DomeKey/Mappings.m index 43f182d..62098fe 100644 --- a/DomeKey/Mappings.m +++ b/DomeKey/Mappings.m @@ -14,16 +14,6 @@ static const CFStringRef CFNOTIFICATION_NAME_RELOAD = CFSTR(NOTIFICATION_NAME_RE  @implementation Mappings -- (void)createXPCConnection -{ -    NSXPCInterface *interface = [NSXPCInterface -        interfaceWithProtocol:@protocol(Reloadable)]; -    NSXPCConnection *connection = [[NSXPCConnection alloc] -        initWithServiceName:@"com.teddywing.DomeKey"]; -    [connection setRemoteObjectInterface:interface]; -    [connection resume]; -} -  + (void)observeReloadNotification  {      CFNotificationCenterRef center = CFNotificationCenterGetDarwinNotifyCenter(); | 
