From 5656338b5d1d9a8d2e90b92a32bddefd7175285b Mon Sep 17 00:00:00 2001 From: Max Desiatov Date: Mon, 28 Nov 2022 13:03:04 +0000 Subject: [PATCH] Remove `print` from implementation of some algorithms (#240) --- .../CombineLatest/CombineLatestStateMachine.swift | 2 -- .../AsyncAlgorithms/CombineLatest/CombineLatestStorage.swift | 1 - 2 files changed, 3 deletions(-) diff --git a/Sources/AsyncAlgorithms/CombineLatest/CombineLatestStateMachine.swift b/Sources/AsyncAlgorithms/CombineLatest/CombineLatestStateMachine.swift index d9928f7..fb68f07 100644 --- a/Sources/AsyncAlgorithms/CombineLatest/CombineLatestStateMachine.swift +++ b/Sources/AsyncAlgorithms/CombineLatest/CombineLatestStateMachine.swift @@ -243,7 +243,6 @@ struct CombineLatestStateMachine< } mutating func elementProduced(_ result: (Base1.Element?, Base2.Element?, Base3.Element?)) -> ElementProducedAction? { - print("upstream produced: \(result)") switch self.state { case .initial: // Child tasks that are producing elements are only created after we transitioned to `zipping` @@ -375,7 +374,6 @@ struct CombineLatestStateMachine< } mutating func upstreamFinished(baseIndex: Int) -> UpstreamFinishedAction? { - print("upstream finished: \(baseIndex)") switch self.state { case .initial: preconditionFailure("Internal inconsistency current state \(self.state) and received upstreamFinished()") diff --git a/Sources/AsyncAlgorithms/CombineLatest/CombineLatestStorage.swift b/Sources/AsyncAlgorithms/CombineLatest/CombineLatestStorage.swift index 716eea2..3124557 100644 --- a/Sources/AsyncAlgorithms/CombineLatest/CombineLatestStorage.swift +++ b/Sources/AsyncAlgorithms/CombineLatest/CombineLatestStorage.swift @@ -75,7 +75,6 @@ final class CombineLatestStorage< } } - print("Returning: \(result)") return try result._rethrowGet() } onCancel: {