Skip to content

Commit 52b326a

Browse files
committed
Remove Array.decode(as:)
Signed-off-by: Adam Fowler <adamfowler71@gmail.com>
1 parent a6d7e2f commit 52b326a

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

Sources/Valkey/RESP/RESPTokenDecodable.swift

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -64,17 +64,6 @@ extension RESPToken: RESPTokenDecodable {
6464
}
6565
}
6666

67-
extension Array where Element == RESPToken {
68-
/// Convert RESPToken Array to a value array
69-
/// - Parameter type: Type to convert to
70-
/// - Throws: ValkeyClientError.unexpectedType
71-
/// - Returns: Array of Value
72-
@inlinable
73-
public func decode<Value: RESPTokenDecodable>(as type: [Value].Type = [Value].self) throws -> [Value] {
74-
try self.map { try $0.decode() }
75-
}
76-
}
77-
7867
extension ByteBuffer: RESPTokenDecodable {
7968
@inlinable
8069
public init(fromRESP token: RESPToken) throws {

0 commit comments

Comments
 (0)