diff --git a/Sources/Core/AWSClientRuntime/Sources/AWSClientRuntime/Protocols/RpcV2Cbor/RpcV2CborError.swift b/Sources/Core/AWSClientRuntime/Sources/AWSClientRuntime/Protocols/RpcV2Cbor/RpcV2CborError.swift index 70dab70ed49..6ec5b545992 100644 --- a/Sources/Core/AWSClientRuntime/Sources/AWSClientRuntime/Protocols/RpcV2Cbor/RpcV2CborError.swift +++ b/Sources/Core/AWSClientRuntime/Sources/AWSClientRuntime/Protocols/RpcV2Cbor/RpcV2CborError.swift @@ -47,6 +47,7 @@ public struct RpcV2CborError: BaseError { } } +// support awsQueryCompatible trait extension RpcV2CborError { @_spi(SmithyReadWrite) public static func makeQueryCompatibleError( @@ -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 - ) - } -}