Remove print from implementation of some algorithms (#240)

This commit is contained in:
Max Desiatov authored and GitHub committed 2022-11-28 08:03:04 -05:00
1 parent 9abd029409
commit 5656338b5d
2 files changed
-3

No files matched your search

@@ -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()")
@@ -75,7 +75,6 @@ final class CombineLatestStorage<
}
}
print("Returning: \(result)")
return try result._rethrowGet()
} onCancel: {