diff --git a/smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/endpointsV2/RuleSetParameterFinder.java b/smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/endpointsV2/RuleSetParameterFinder.java index 01b1e6fbe93..a76ad95d6be 100644 --- a/smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/endpointsV2/RuleSetParameterFinder.java +++ b/smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/endpointsV2/RuleSetParameterFinder.java @@ -30,7 +30,9 @@ import software.amazon.smithy.rulesengine.traits.ContextParamTrait; import software.amazon.smithy.rulesengine.traits.EndpointRuleSetTrait; import software.amazon.smithy.rulesengine.traits.StaticContextParamsTrait; +import software.amazon.smithy.utils.SmithyInternalApi; +@SmithyInternalApi public class RuleSetParameterFinder { private final ServiceShape service; private final EndpointRuleSetTrait ruleset; @@ -73,31 +75,6 @@ public Map getClientContextParams() { return map; } - /** - * "The staticContextParams trait defines one or more context parameters that MUST - * be bound to the specified values. This trait MUST target an operation shape." - */ - public Map getStaticContextParams(Shape operationInput) { - Map map = new HashMap<>(); - - if (operationInput.isStructureShape()) { - operationInput.getAllMembers().forEach((String memberName, MemberShape member) -> { - Optional trait = member.getTrait(StaticContextParamsTrait.class); - if (trait.isPresent()) { - StaticContextParamsTrait staticContextParamsTrait = trait.get(); - staticContextParamsTrait.getParameters().forEach((name, definition) -> { - map.put( - name, - definition.getValue().getType().toString() - ); - }); - } - }); - } - - return map; - } - /** * Get map of params to actual values instead of the value type. */