diff options
author | Joel Fischer <joeljfischer@gmail.com> | 2021-09-27 10:02:47 -0400 |
---|---|---|
committer | Joel Fischer <joeljfischer@gmail.com> | 2021-09-27 10:02:47 -0400 |
commit | e5683a078e9d120303dc331fec890fc38b929247 (patch) | |
tree | 80771e1e90a14446134a224d5a7319350a2146e7 | |
parent | cbc318c64aadd04600d14bd70d04cb13717953c8 (diff) | |
download | sdl_ios-e5683a078e9d120303dc331fec890fc38b929247.tar.gz |
Remove duplicate code
-rw-r--r-- | SmartDeviceLink/public/SDLFileManager.m | 3 |
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) { |