From 66693289ed49e3961fe4d15f4bbe8fc6897f12ef Mon Sep 17 00:00:00 2001 From: Scott Pfeil Date: Mon, 28 Aug 2023 18:44:00 -0400 Subject: [PATCH] Remove debug code --- MVMCore/MVMCore/LoadHandling/MVMCoreLoadHandler.m | 5 ----- .../Utility/Helpers/MVMCoreActionUtility+Extension.swift | 7 +------ 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/MVMCore/MVMCore/LoadHandling/MVMCoreLoadHandler.m b/MVMCore/MVMCore/LoadHandling/MVMCoreLoadHandler.m index f43d2f0..2931c42 100644 --- a/MVMCore/MVMCore/LoadHandling/MVMCoreLoadHandler.m +++ b/MVMCore/MVMCore/LoadHandling/MVMCoreLoadHandler.m @@ -274,11 +274,6 @@ return body; } -- (nullable void (^)(id _Nullable jsonObject, MVMCoreErrorObject *_Nullable error))modifyRequestFinished:(nullable void (^)(id _Nullable jsonObject, MVMCoreErrorObject *_Nullable error))requestFinished { - return requestFinished; -} - -/// MAKE SWIFTY - (void)sendRequest:(nonnull MVMCoreRequestParameters *)requestParameters locationForError:(nonnull NSString *)locationForError requestFinished:(nullable void (^)(id _Nullable jsonObject, MVMCoreErrorObject *_Nullable error))requestFinished { [self transformToRequestWithParameters:requestParameters closure:^(NSURLRequest * _Nullable request, MVMCoreErrorObject * _Nullable error) { if (error) { diff --git a/MVMCore/MVMCore/Utility/Helpers/MVMCoreActionUtility+Extension.swift b/MVMCore/MVMCore/Utility/Helpers/MVMCoreActionUtility+Extension.swift index df32816..31b7504 100644 --- a/MVMCore/MVMCore/Utility/Helpers/MVMCoreActionUtility+Extension.swift +++ b/MVMCore/MVMCore/Utility/Helpers/MVMCoreActionUtility+Extension.swift @@ -34,26 +34,21 @@ public extension MVMCoreActionUtility { // Task for operation. group.addTask { try Task.checkCancellation() - let id = try await operation() - print("sss 1") - return id + return try await operation() } // Task for time out. group.addTask { try Task.checkCancellation() try await Task.sleep(nanoseconds: UInt64(timeout) * NSEC_PER_SEC) - print("sss 2") throw MVMCoreActionUtilityError.timeOut } do { guard let result = try await group.next() else { - print("sss no task") continuation.resume(throwing: MVMCoreActionUtilityError.noTasks) return } - print("sss next \(String(describing: result))") group.cancelAll() continuation.resume(returning: result) } catch {