refactor(firehose): remove unused constraint formatter (#9266)

S3DestinationValidator.constraintSet(String) lost its last caller when the mapping checks moved to SmithyValidationErrors.constraintSet in #9256.

Closes #9265
This commit is contained in:
galsuchetzky-act authored and GitHub committed 2026-11-23 10:08:11 -04:00
1 parent 16c2505a25
commit 319d96db30
1 file changed
-6
@@ -250,12 +250,6 @@ public final class S3DestinationValidator {
return !value.isEmpty() && value.length() <= MAPPING_MAX_LENGTH;
}
private static String constraintSet(String pattern) {
return "[Member must have length less than or equal to " + MAPPING_MAX_LENGTH
+ ", Member must have length greater than or equal to 1"
+ ", Member must satisfy regular expression pattern: " + pattern + "]";
}
private static Serializer serializer(S3Destination config) {
DeliveryStreamDescription.DataFormatConversionConfiguration conversion = config.getDataFormatConversionConfiguration();
if (conversion == null || conversion.getOutputFormatConfiguration() == null) {