summaryrefslogtreecommitdiff
path: root/SmartDeviceLink/SDLOnKeyboardInput.m
diff options
context:
space:
mode:
Diffstat (limited to 'SmartDeviceLink/SDLOnKeyboardInput.m')
-rw-r--r--SmartDeviceLink/SDLOnKeyboardInput.m11
1 files changed, 3 insertions, 8 deletions
diff --git a/SmartDeviceLink/SDLOnKeyboardInput.m b/SmartDeviceLink/SDLOnKeyboardInput.m
index de1ab0722..16848f5b7 100644
--- a/SmartDeviceLink/SDLOnKeyboardInput.m
+++ b/SmartDeviceLink/SDLOnKeyboardInput.m
@@ -3,7 +3,6 @@
#import "SDLOnKeyboardInput.h"
-#import "SDLKeyboardEvent.h"
#import "SDLNames.h"
@implementation SDLOnKeyboardInput
@@ -14,7 +13,7 @@
return self;
}
-- (void)setEvent:(SDLKeyboardEvent *)event {
+- (void)setEvent:(SDLKeyboardEvent)event {
if (event != nil) {
[parameters setObject:event forKey:SDLNameEvent];
} else {
@@ -22,13 +21,9 @@
}
}
-- (SDLKeyboardEvent *)event {
+- (SDLKeyboardEvent)event {
NSObject *obj = [parameters objectForKey:SDLNameEvent];
- if (obj == nil || [obj isKindOfClass:SDLKeyboardEvent.class]) {
- return (SDLKeyboardEvent *)obj;
- } else {
- return [SDLKeyboardEvent valueOf:(NSString *)obj];
- }
+ return (SDLKeyboardEvent)obj;
}
- (void)setData:(NSString *)data {