aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--DomeKey/Mappings.h6
-rw-r--r--DomeKey/Mappings.m10
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();