From cd6960f5e9ff99c130e80eda4f28883fbd5447b5 Mon Sep 17 00:00:00 2001 From: Ethan Wong Date: Tue, 7 Jun 2022 11:35:37 +0800 Subject: [PATCH] Fix warnings of redundant conformance constraint on Xcode 14. --- GRDB/Fixit/GRDB-5.0.swift | 71 ++++++--------------------------------- 1 file changed, 11 insertions(+), 60 deletions(-) diff --git a/GRDB/Fixit/GRDB-5.0.swift b/GRDB/Fixit/GRDB-5.0.swift index e8ef6a721..e8f8f36ce 100644 --- a/GRDB/Fixit/GRDB-5.0.swift +++ b/GRDB/Fixit/GRDB-5.0.swift @@ -314,19 +314,14 @@ extension ValueObservation { { preconditionFailure() } @available(*, unavailable, message: "combine is no longer available. See the \"Migrating From GRDB 4 to GRDB 5\" guide.") - public func combine< - R1: _ValueReducer, - Combined>( + public func combine( _ other: ValueObservation, _ transform: @escaping (Reducer.Value, R1.Value) -> Combined) -> ValueObservation> { preconditionFailure() } @available(*, unavailable, message: "combine is no longer available. See the \"Migrating From GRDB 4 to GRDB 5\" guide.") - public func combine< - R1: _ValueReducer, - R2: _ValueReducer, - Combined>( + public func combine( _ observation1: ValueObservation, _ observation2: ValueObservation, _ transform: @escaping (Reducer.Value, R1.Value, R2.Value) -> Combined) @@ -334,11 +329,7 @@ extension ValueObservation { { preconditionFailure() } @available(*, unavailable, message: "combine is no longer available. See the \"Migrating From GRDB 4 to GRDB 5\" guide.") - public func combine< - R1: _ValueReducer, - R2: _ValueReducer, - R3: _ValueReducer, - Combined>( + public func combine( _ observation1: ValueObservation, _ observation2: ValueObservation, _ observation3: ValueObservation, @@ -347,12 +338,7 @@ extension ValueObservation { { preconditionFailure() } @available(*, unavailable, message: "combine is no longer available. See the \"Migrating From GRDB 4 to GRDB 5\" guide.") - public func combine< - R1: _ValueReducer, - R2: _ValueReducer, - R3: _ValueReducer, - R4: _ValueReducer, - Combined>( + public func combine( _ observation1: ValueObservation, _ observation2: ValueObservation, _ observation3: ValueObservation, @@ -374,19 +360,14 @@ extension ValueObservation { extension ValueObservation where Reducer == ValueReducers.Auto { @available(*, unavailable, message: "combine is no longer available. See the \"Migrating From GRDB 4 to GRDB 5\" guide.") - public static func combine< - R1: _ValueReducer, - R2: _ValueReducer>( + public static func combine( _ o1: ValueObservation, _ o2: ValueObservation) -> ValueObservation> { preconditionFailure() } @available(*, unavailable, message: "combine is no longer available. See the \"Migrating From GRDB 4 to GRDB 5\" guide.") - public static func combine< - R1: _ValueReducer, - R2: _ValueReducer, - R3: _ValueReducer>( + public static func combine( _ o1: ValueObservation, _ o2: ValueObservation, _ o3: ValueObservation) @@ -394,11 +375,7 @@ extension ValueObservation where Reducer == ValueReducers.Auto { { preconditionFailure() } @available(*, unavailable, message: "combine is no longer available. See the \"Migrating From GRDB 4 to GRDB 5\" guide.") - public static func combine< - R1: _ValueReducer, - R2: _ValueReducer, - R3: _ValueReducer, - R4: _ValueReducer>( + public static func combine( _ o1: ValueObservation, _ o2: ValueObservation, _ o3: ValueObservation, @@ -407,12 +384,7 @@ extension ValueObservation where Reducer == ValueReducers.Auto { { preconditionFailure() } @available(*, unavailable, message: "combine is no longer available. See the \"Migrating From GRDB 4 to GRDB 5\" guide.") - public static func combine< - R1: _ValueReducer, - R2: _ValueReducer, - R3: _ValueReducer, - R4: _ValueReducer, - R5: _ValueReducer>( + public static func combine( _ o1: ValueObservation, _ o2: ValueObservation, _ o3: ValueObservation, @@ -422,13 +394,7 @@ extension ValueObservation where Reducer == ValueReducers.Auto { { preconditionFailure() } @available(*, unavailable, message: "combine is no longer available. See the \"Migrating From GRDB 4 to GRDB 5\" guide.") - public static func combine< - R1: _ValueReducer, - R2: _ValueReducer, - R3: _ValueReducer, - R4: _ValueReducer, - R5: _ValueReducer, - R6: _ValueReducer>( + public static func combine( _ o1: ValueObservation, _ o2: ValueObservation, _ o3: ValueObservation, @@ -439,14 +405,7 @@ extension ValueObservation where Reducer == ValueReducers.Auto { { preconditionFailure() } @available(*, unavailable, message: "combine is no longer available. See the \"Migrating From GRDB 4 to GRDB 5\" guide.") - public static func combine< - R1: _ValueReducer, - R2: _ValueReducer, - R3: _ValueReducer, - R4: _ValueReducer, - R5: _ValueReducer, - R6: _ValueReducer, - R7: _ValueReducer>( + public static func combine( _ o1: ValueObservation, _ o2: ValueObservation, _ o3: ValueObservation, @@ -458,15 +417,7 @@ extension ValueObservation where Reducer == ValueReducers.Auto { { preconditionFailure() } @available(*, unavailable, message: "combine is no longer available. See the \"Migrating From GRDB 4 to GRDB 5\" guide.") - public static func combine< - R1: _ValueReducer, - R2: _ValueReducer, - R3: _ValueReducer, - R4: _ValueReducer, - R5: _ValueReducer, - R6: _ValueReducer, - R7: _ValueReducer, - R8: _ValueReducer>( + public static func combine( _ o1: ValueObservation, _ o2: ValueObservation, _ o3: ValueObservation,