Skip to content

Commit

Permalink
remove leftover code
Browse files Browse the repository at this point in the history
  • Loading branch information
dayaffe committed Dec 26, 2024
1 parent 854c28a commit 35971c9
Showing 1 changed file with 1 addition and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ public struct RpcV2CborError: BaseError {
}
}

// support awsQueryCompatible trait
extension RpcV2CborError {
@_spi(SmithyReadWrite)
public static func makeQueryCompatibleError(
Expand All @@ -64,22 +65,3 @@ extension RpcV2CborError {
)
}
}

// support awsQueryCompatible trait
extension AWSJSONError {
@_spi(SmithyReadWrite)
public static func makeQueryCompatibleAWSJsonError(
httpResponse: HTTPResponse,
responseReader: Reader,
noErrorWrapping: Bool,
errorDetails: String?
) throws -> RpcV2CborError {
let errorCode = try AwsQueryCompatibleErrorDetails.parse(errorDetails).code
return try RpcV2CborError(
httpResponse: httpResponse,
responseReader: responseReader,
noErrorWrapping: noErrorWrapping,
code: errorCode
)
}
}

0 comments on commit 35971c9

Please sign in to comment.