From e5683a078e9d120303dc331fec890fc38b929247 Mon Sep 17 00:00:00 2001 From: Joel Fischer Date: Mon, 27 Sep 2021 10:02:47 -0400 Subject: Remove duplicate code --- SmartDeviceLink/public/SDLFileManager.m | 3 --- 1 file changed, 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) { -- cgit v1.2.1