diff --git a/gems/aws-sdk-core/lib/aws-sdk-core/endpoints/matchers.rb b/gems/aws-sdk-core/lib/aws-sdk-core/endpoints/matchers.rb index 5d944cb1045..95ac2b17903 100644 --- a/gems/aws-sdk-core/lib/aws-sdk-core/endpoints/matchers.rb +++ b/gems/aws-sdk-core/lib/aws-sdk-core/endpoints/matchers.rb @@ -95,14 +95,6 @@ def self.valid_host_label?(value, allow_sub_domains = false) # aws.partition(value: string) Option def self.aws_partition(value) Aws::Partitions::Metadata.partition(value) - # partition = - # Aws::Partitions.find { |p| p.region?(value) } || - # Aws::Partitions.find { |p| value.match(p.region_regex) } || - # Aws::Partitions.find { |p| p.name == 'aws' } - # - # return nil unless partition - # - # partition.metadata end # aws.parseArn(value: string) Option