summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Fischer <joeljfischer@gmail.com>2021-09-27 10:02:47 -0400
committerJoel Fischer <joeljfischer@gmail.com>2021-09-27 10:02:47 -0400
commite5683a078e9d120303dc331fec890fc38b929247 (patch)
tree80771e1e90a14446134a224d5a7319350a2146e7
parentcbc318c64aadd04600d14bd70d04cb13717953c8 (diff)
downloadsdl_ios-e5683a078e9d120303dc331fec890fc38b929247.tar.gz
Remove duplicate code
-rw-r--r--SmartDeviceLink/public/SDLFileManager.m3
1 files changed, 0 insertions, 3 deletions
diff --git a/SmartDeviceLink/public/SDLFileManager.m b/SmartDeviceLink/public/SDLFileManager.m
index b7e38cb85..85bf07480 100644
--- a/SmartDeviceLink/public/SDLFileManager.m
+++ b/SmartDeviceLink/public/SDLFileManager.m
@@ -264,8 +264,6 @@ SDLFileManagerState *const SDLFileManagerStateStartupError = @"StartupError";
[self deleteRemoteFileWithName:name completionHandler:^(BOOL success, NSUInteger bytesAvailable, NSError * _Nullable error) {
if (!success) {
failedDeletes[name] = error;
- } else {
- weakself.bytesAvailable = bytesAvailable;
}
dispatch_group_leave(deleteFilesTask);
}];
@@ -393,7 +391,6 @@ SDLFileManagerState *const SDLFileManagerStateStartupError = @"StartupError";
- (void)sdl_uploadFile:(SDLFile *)file completionHandler:(nullable SDLFileManagerUploadCompletionHandler)handler {
SDLFile *fileCopy = [file copy];
- SDLFileManagerUploadCompletionHandler uploadCompletion = [handler copy];
__weak typeof(self) weakSelf = self;
SDLFileWrapper *fileWrapper = [SDLFileWrapper wrapperWithFile:fileCopy completionHandler:^(BOOL success, NSUInteger bytesAvailable, NSError *_Nullable error) {