summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--SmartDeviceLink/SDLPutFileResponse.h5
-rw-r--r--SmartDeviceLink/SDLPutFileResponse.m8
-rw-r--r--SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLPutFileResponseSpec.m11
3 files changed, 3 insertions, 21 deletions
diff --git a/SmartDeviceLink/SDLPutFileResponse.h b/SmartDeviceLink/SDLPutFileResponse.h
index 44c42675c..322ab47d4 100644
--- a/SmartDeviceLink/SDLPutFileResponse.h
+++ b/SmartDeviceLink/SDLPutFileResponse.h
@@ -19,11 +19,6 @@ NS_ASSUME_NONNULL_BEGIN
*/
@property (strong, nonatomic) NSNumber<SDLInt> *spaceAvailable;
-/**
- * The success status of the data sent to SDL Core.
- */
-@property (nullable, strong, nonatomic) SDLResult resultCode;
-
@end
NS_ASSUME_NONNULL_END
diff --git a/SmartDeviceLink/SDLPutFileResponse.m b/SmartDeviceLink/SDLPutFileResponse.m
index 5633662e5..2d3de3352 100644
--- a/SmartDeviceLink/SDLPutFileResponse.m
+++ b/SmartDeviceLink/SDLPutFileResponse.m
@@ -25,14 +25,6 @@ NS_ASSUME_NONNULL_BEGIN
return [parameters sdl_objectForName:SDLNameSpaceAvailable];
}
-- (void)setResultCode:(nullable SDLResult)resultCode {
- [parameters sdl_setObject:resultCode forName:SDLNameResultCode];
-}
-
-- (nullable SDLResult)resultCode {
- return [parameters sdl_objectForName:SDLNameResultCode];
-}
-
@end
NS_ASSUME_NONNULL_END
diff --git a/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLPutFileResponseSpec.m b/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLPutFileResponseSpec.m
index 1f13976f5..9fb2f42ad 100644
--- a/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLPutFileResponseSpec.m
+++ b/SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLPutFileResponseSpec.m
@@ -18,30 +18,25 @@ describe(@"Getter/Setter Tests", ^ {
SDLPutFileResponse* testResponse = [[SDLPutFileResponse alloc] init];
testResponse.spaceAvailable = @1248;
- testResponse.resultCode = SDLResultCorruptedData;
-
+
expect(testResponse.spaceAvailable).to(equal(@1248));
- expect(testResponse.resultCode).to(equal(SDLResultCorruptedData));
});
it(@"Should get correctly when initialized", ^ {
- NSMutableDictionary<NSString *, id> *dict = [@{SDLNameResponse:
+ NSDictionary<NSString *, id> *dict = @{SDLNameResponse:
@{SDLNameParameters:
@{SDLNameSpaceAvailable:@1248,
- SDLNameResultCode:SDLResultSuccess
},
- SDLNameOperationName:SDLNamePutFile}} mutableCopy];
+ SDLNameOperationName:SDLNamePutFile}};
SDLPutFileResponse* testResponse = [[SDLPutFileResponse alloc] initWithDictionary:dict];
expect(testResponse.spaceAvailable).to(equal(@1248));
- expect(testResponse.resultCode).to(equal(SDLResultSuccess));
});
it(@"Should return nil if not set", ^ {
SDLPutFileResponse* testResponse = [[SDLPutFileResponse alloc] init];
expect(testResponse.spaceAvailable).to(beNil());
- expect(testResponse.resultCode).to(beNil());
});
});