diff options
Diffstat (limited to 'SmartDeviceLink/SDLSingleTireStatus.m')
-rw-r--r-- | SmartDeviceLink/SDLSingleTireStatus.m | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/SmartDeviceLink/SDLSingleTireStatus.m b/SmartDeviceLink/SDLSingleTireStatus.m index 87826f32b..44d30f867 100644 --- a/SmartDeviceLink/SDLSingleTireStatus.m +++ b/SmartDeviceLink/SDLSingleTireStatus.m @@ -3,7 +3,6 @@ #import "SDLSingleTireStatus.h" -#import "SDLComponentVolumeStatus.h" #import "SDLNames.h" @@ -21,7 +20,7 @@ return self; } -- (void)setStatus:(SDLComponentVolumeStatus *)status { +- (void)setStatus:(SDLComponentVolumeStatus)status { if (status != nil) { [store setObject:status forKey:NAMES_status]; } else { @@ -29,13 +28,9 @@ } } -- (SDLComponentVolumeStatus *)status { +- (SDLComponentVolumeStatus)status { NSObject *obj = [store objectForKey:NAMES_status]; - if (obj == nil || [obj isKindOfClass:SDLComponentVolumeStatus.class]) { - return (SDLComponentVolumeStatus *)obj; - } else { - return [SDLComponentVolumeStatus valueOf:(NSString *)obj]; - } + return (SDLComponentVolumeStatus)obj; } @end |