summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Fischer <joeljfischer@gmail.com>2017-08-22 18:56:38 -0400
committerGitHub <noreply@github.com>2017-08-22 18:56:38 -0400
commit60e8185f695ba1bfdacd504410aede54dea7dce2 (patch)
tree995006648b17221fd1b0f4ec1eb56d5699a7c257
parentb4e4918d9a1021e51f858df2ac6aa8f1472d4093 (diff)
parent20d7bb158e24e99f80e139c4854dae1ddf567811 (diff)
downloadsdl_ios-60e8185f695ba1bfdacd504410aede54dea7dce2.tar.gz
Merge pull request #701 from smartdevicelink/bugfix/issue_700_remove_metadatatype_none
Fix SDLMetadataType including NONE
-rw-r--r--SmartDeviceLink-iOS.xcodeproj/project.pbxproj2
-rw-r--r--SmartDeviceLink/SDLMetadataType.h7
-rw-r--r--SmartDeviceLink/SDLMetadataType.m11
-rw-r--r--SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLMetadataTypeSpec.m5
4 files changed, 3 insertions, 22 deletions
diff --git a/SmartDeviceLink-iOS.xcodeproj/project.pbxproj b/SmartDeviceLink-iOS.xcodeproj/project.pbxproj
index 9806b0777..31a7282d2 100644
--- a/SmartDeviceLink-iOS.xcodeproj/project.pbxproj
+++ b/SmartDeviceLink-iOS.xcodeproj/project.pbxproj
@@ -942,7 +942,7 @@
8B0606291F3103CE005ADB2F /* SDLMetadataTags.h in Headers */ = {isa = PBXBuildFile; fileRef = 8B0606271F3103CE005ADB2F /* SDLMetadataTags.h */; settings = {ATTRIBUTES = (Public, ); }; };
8B06062A1F3103CE005ADB2F /* SDLMetadataTags.m in Sources */ = {isa = PBXBuildFile; fileRef = 8B0606281F3103CE005ADB2F /* SDLMetadataTags.m */; };
8B06062C1F310ED2005ADB2F /* SDLMetadataTagsSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 8B06062B1F310ED2005ADB2F /* SDLMetadataTagsSpec.m */; };
- 8BD729A61F2A2CF30029AC93 /* SDLVideoStreamingCodec.h in Headers */ = {isa = PBXBuildFile; fileRef = 8BD729A41F2A2CF30029AC93 /* SDLVideoStreamingCodec.h */; };
+ 8BD729A61F2A2CF30029AC93 /* SDLVideoStreamingCodec.h in Headers */ = {isa = PBXBuildFile; fileRef = 8BD729A41F2A2CF30029AC93 /* SDLVideoStreamingCodec.h */; settings = {ATTRIBUTES = (Public, ); }; };
8BD729A71F2A2CF30029AC93 /* SDLVideoStreamingCodec.m in Sources */ = {isa = PBXBuildFile; fileRef = 8BD729A51F2A2CF30029AC93 /* SDLVideoStreamingCodec.m */; };
8BD729AA1F2A41F40029AC93 /* SDLVideoStreamingProtocol.h in Headers */ = {isa = PBXBuildFile; fileRef = 8BD729A81F2A41F40029AC93 /* SDLVideoStreamingProtocol.h */; settings = {ATTRIBUTES = (Public, ); }; };
8BD729AB1F2A41F40029AC93 /* SDLVideoStreamingProtocol.m in Sources */ = {isa = PBXBuildFile; fileRef = 8BD729A91F2A41F40029AC93 /* SDLVideoStreamingProtocol.m */; };
diff --git a/SmartDeviceLink/SDLMetadataType.h b/SmartDeviceLink/SDLMetadataType.h
index 2141756cc..96e65552a 100644
--- a/SmartDeviceLink/SDLMetadataType.h
+++ b/SmartDeviceLink/SDLMetadataType.h
@@ -116,11 +116,4 @@
*/
+ (SDLMetadataType *)HUMIDITY;
-/**
- The data in this field is not of a common type or should not be processed. Any time a field does not have a type parameter it is considered as the none type.
-
- @return A SDLTextFieldType object with value of *none*
- */
-+ (SDLMetadataType *)NONE;
-
@end
diff --git a/SmartDeviceLink/SDLMetadataType.m b/SmartDeviceLink/SDLMetadataType.m
index 7e089230d..3b727aba9 100644
--- a/SmartDeviceLink/SDLMetadataType.m
+++ b/SmartDeviceLink/SDLMetadataType.m
@@ -20,7 +20,6 @@ SDLMetadataType *SDLMetadataType_MAXIMUM_TEMPERATURE = nil;
SDLMetadataType *SDLMetadataType_MINIMUM_TEMPERATURE = nil;
SDLMetadataType *SDLMetadataType_WEATHER_TERM = nil;
SDLMetadataType *SDLMetadataType_HUMIDITY = nil;
-SDLMetadataType *SDLMetadataType_NONE = nil;
NSArray *SDLMetadataType_values = nil;
@@ -49,8 +48,7 @@ NSArray *SDLMetadataType_values = nil;
SDLMetadataType.MAXIMUM_TEMPERATURE,
SDLMetadataType.MINIMUM_TEMPERATURE,
SDLMetadataType.WEATHER_TERM,
- SDLMetadataType.HUMIDITY,
- SDLMetadataType.NONE];
+ SDLMetadataType.HUMIDITY];
}
return SDLMetadataType_values;
}
@@ -139,11 +137,4 @@ NSArray *SDLMetadataType_values = nil;
return SDLMetadataType_HUMIDITY;
}
-+ (SDLMetadataType *)NONE {
- if (SDLMetadataType_NONE == nil) {
- SDLMetadataType_NONE = [[SDLMetadataType alloc] initWithValue:@"none"];
- }
- return SDLMetadataType_NONE;
-}
-
@end
diff --git a/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLMetadataTypeSpec.m b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLMetadataTypeSpec.m
index 5eea451e1..b5ab398e1 100644
--- a/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLMetadataTypeSpec.m
+++ b/SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLMetadataTypeSpec.m
@@ -29,7 +29,6 @@ describe(@"Individual Enum Value Tests", ^ {
expect([SDLMetadataType MINIMUM_TEMPERATURE].value).to(equal(@"minimumTemperature"));
expect([SDLMetadataType WEATHER_TERM].value).to(equal(@"weatherTerm"));
expect([SDLMetadataType HUMIDITY].value).to(equal(@"humidity"));
- expect([SDLMetadataType NONE].value).to(equal(@"none"));
});
});
describe(@"ValueOf Tests", ^ {
@@ -46,7 +45,6 @@ describe(@"ValueOf Tests", ^ {
expect([SDLMetadataType valueOf:@"minimumTemperature"]).to(equal([SDLMetadataType MINIMUM_TEMPERATURE]));
expect([SDLMetadataType valueOf:@"weatherTerm"]).to(equal([SDLMetadataType WEATHER_TERM]));
expect([SDLMetadataType valueOf:@"humidity"]).to(equal([SDLMetadataType HUMIDITY]));
- expect([SDLMetadataType valueOf:@"none"]).to(equal([SDLMetadataType NONE]));
});
it(@"Should return nil when invalid", ^ {
@@ -70,8 +68,7 @@ describe(@"Value List Tests", ^ {
[SDLMetadataType MAXIMUM_TEMPERATURE],
[SDLMetadataType MINIMUM_TEMPERATURE],
[SDLMetadataType WEATHER_TERM],
- [SDLMetadataType HUMIDITY],
- [SDLMetadataType NONE]] copy];
+ [SDLMetadataType HUMIDITY]] copy];
});
it(@"Should contain all defined enum values", ^ {