Skip to content

Commit 8bff147

Browse files
committed
[Distributed] Remove extraneous DistributedTargetInvocationArgumentDecoder
1 parent 1331b92 commit 8bff147

14 files changed

+0
-68
lines changed

stdlib/public/Distributed/DistributedActorSystem.swift

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -466,15 +466,6 @@ public protocol DistributedTargetInvocationDecoder {
466466
func decodeReturnType() throws -> Any.Type?
467467
}
468468

469-
///
470-
/// It will be called exactly `N` times where `N` is the known number of arguments
471-
/// to the target invocation.
472-
@available(SwiftStdlib 5.6, *)
473-
public protocol DistributedTargetInvocationArgumentDecoder {
474-
475-
476-
}
477-
478469
@available(SwiftStdlib 5.6, *)
479470
public protocol DistributedTargetInvocationResultHandler {
480471
associatedtype SerializationRequirement

test/Distributed/Inputs/FakeDistributedActorSystems.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,6 @@ public struct FakeInvocation: DistributedTargetInvocationEncoder, DistributedTar
121121
) throws { /* ... */ }
122122
public func decodeReturnType() throws -> Any.Type? { nil }
123123
public func decodeErrorType() throws -> Any.Type? { nil }
124-
125-
public struct FakeArgumentDecoder: DistributedTargetInvocationArgumentDecoder {
126-
public typealias SerializationRequirement = Codable
127-
}
128124
}
129125

130126
// ==== Fake Roundtrip Transport -----------------------------------------------

test/Distributed/Inputs/dynamic_replacement_da_decl.swift

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -100,16 +100,6 @@ struct FakeInvocation: DistributedTargetInvocationEncoder, DistributedTargetInvo
100100
) throws { /* ... */ }
101101
func decodeReturnType() throws -> Any.Type? { nil }
102102
func decodeErrorType() throws -> Any.Type? { nil }
103-
104-
struct FakeArgumentDecoder: DistributedTargetInvocationArgumentDecoder {
105-
typealias SerializationRequirement = Codable
106-
107-
// FIXME(distributed): should have 'Argument: SerializationRequirement'
108-
mutating func decodeNext<Argument>(
109-
_ argumentType: Argument.Type,
110-
into pointer: UnsafeMutablePointer<Argument>
111-
) throws { }
112-
}
113103
}
114104

115105
@available(SwiftStdlib 5.5, *)

test/Distributed/Runtime/distributed_actor_decode.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,6 @@ struct FakeInvocation: DistributedTargetInvocationEncoder, DistributedTargetInvo
119119
) throws { /* ... */ }
120120
func decodeReturnType() throws -> Any.Type? { nil }
121121
func decodeErrorType() throws -> Any.Type? { nil }
122-
123-
struct FakeArgumentDecoder: DistributedTargetInvocationArgumentDecoder {
124-
typealias SerializationRequirement = Codable
125-
}
126122
}
127123

128124
@available(SwiftStdlib 5.5, *)

test/Distributed/Runtime/distributed_actor_deinit.swift

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,6 @@ final class FakeActorSystem: @unchecked Sendable, DistributedActorSystem {
120120
}
121121

122122
struct FakeDistributedInvocation: DistributedTargetInvocationEncoder, DistributedTargetInvocationDecoder {
123-
typealias ArgumentDecoder = FakeDistributedTargetInvocationArgumentDecoder
124123
typealias SerializationRequirement = Codable
125124

126125
mutating func recordGenericSubstitution<T>(_ type: T.Type) throws { }
@@ -148,10 +147,6 @@ struct FakeDistributedInvocation: DistributedTargetInvocationEncoder, Distribute
148147
}
149148
}
150149

151-
struct FakeDistributedTargetInvocationArgumentDecoder: DistributedTargetInvocationArgumentDecoder {
152-
typealias SerializationRequirement = Codable
153-
}
154-
155150
typealias DefaultDistributedActorSystem = FakeActorSystem
156151

157152
// ==== Execute ----------------------------------------------------------------

test/Distributed/Runtime/distributed_actor_init_local.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,10 +139,6 @@ public struct FakeInvocation: DistributedTargetInvocationEncoder, DistributedTar
139139
) throws { /* ... */ }
140140
public func decodeReturnType() throws -> Any.Type? { nil }
141141
public func decodeErrorType() throws -> Any.Type? { nil }
142-
143-
public struct FakeArgumentDecoder: DistributedTargetInvocationArgumentDecoder {
144-
public typealias SerializationRequirement = Codable
145-
}
146142
}
147143

148144
typealias DefaultDistributedActorSystem = FakeActorSystem

test/Distributed/Runtime/distributed_actor_isRemote.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,6 @@ struct FakeInvocation: DistributedTargetInvocationEncoder, DistributedTargetInvo
113113
) throws { /* ... */ }
114114
func decodeReturnType() throws -> Any.Type? { nil }
115115
func decodeErrorType() throws -> Any.Type? { nil }
116-
117-
struct FakeArgumentDecoder: DistributedTargetInvocationArgumentDecoder {
118-
typealias SerializationRequirement = Codable
119-
}
120116
}
121117

122118
typealias DefaultDistributedActorSystem = FakeActorSystem

test/Distributed/Runtime/distributed_actor_local.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,6 @@ struct FakeInvocation: DistributedTargetInvocationEncoder, DistributedTargetInvo
115115
) throws { /* ... */ }
116116
func decodeReturnType() throws -> Any.Type? { nil }
117117
func decodeErrorType() throws -> Any.Type? { nil }
118-
119-
struct FakeArgumentDecoder: DistributedTargetInvocationArgumentDecoder {
120-
typealias SerializationRequirement = Codable
121-
}
122118
}
123119

124120
typealias DefaultDistributedActorSystem = FakeActorSystem

test/Distributed/Runtime/distributed_actor_remote_fieldsDontCrashDeinit.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,6 @@ struct FakeInvocation: DistributedTargetInvocationEncoder, DistributedTargetInvo
128128
) throws { /* ... */ }
129129
func decodeReturnType() throws -> Any.Type? { nil }
130130
func decodeErrorType() throws -> Any.Type? { nil }
131-
132-
struct FakeArgumentDecoder: DistributedTargetInvocationArgumentDecoder {
133-
typealias SerializationRequirement = Codable
134-
}
135131
}
136132

137133
typealias DefaultDistributedActorSystem = FakeActorSystem

test/Distributed/Runtime/distributed_actor_remote_functions.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -219,10 +219,6 @@ struct FakeInvocation: DistributedTargetInvocationEncoder, DistributedTargetInvo
219219
) throws { /* ... */ }
220220
func decodeReturnType() throws -> Any.Type? { nil }
221221
func decodeErrorType() throws -> Any.Type? { nil }
222-
223-
struct FakeArgumentDecoder: DistributedTargetInvocationArgumentDecoder {
224-
typealias SerializationRequirement = Codable
225-
}
226222
}
227223

228224
@available(SwiftStdlib 5.5, *)

0 commit comments

Comments
 (0)