chore(cloudformation): sweep the dead code out of the legacy resource provisioner (#3723)

* chore(cloudformation): sweep the dead code out of the legacy resource provisioner

Eleven batches have moved types out of CloudFormationResourceProvisioner and each
left something behind: a constructor parameter that is injected but never assigned,
a helper whose last caller moved, an import for a model type nothing here touches, a
section header with no code under it. None of it is reachable, so none of it needs a
test to remove.

Gone: eight constructor parameters (22 to 14, every remaining one is assigned and
used), eleven private methods with no caller but their own declaration (the nine
JSON put and parse helpers plus resolveOptionalWithoutDynamicReferences and
parseCfnTags, whose last callers left with RDS and DynamoDB), twenty-six imports
with no remaining use, and seven empty section headers. The test fixture drops the
same eight positional arguments; its builder keeps the fields because the inferred
provisioners still take those services. 3,638 lines to 3,430, no behaviour change.

* chore(cloudformation): drop the orphaned CORS Javadoc and reattach the legacy-set Javadoc

Two comment-only leftovers of earlier batches, both found while checking a review
comment on the sweep. The Javadoc for the S3 CorsConfiguration method stayed behind
when #2754 moved the method to S3CfnProvisioner; it goes. The Javadoc describing
LEGACY_SWITCH_TYPES was stacked directly above the DELETE_NEEDS_STACK_RESOURCE one,
so the compiler attached it to nothing and the set it describes had no doc; it now
sits above its own declaration, text unchanged.
This commit is contained in:
Hector Ventura authored and GitHub committed 2026-09-16 13:15:36 -04:00
1 parent d8df3e0143
commit 5de25631ac
2 files changed
+9 -235

No files matched your search

@@ -667,22 +667,14 @@ final class CfnProvisionerFixture {
s3Service,
lambdaService,
iamService,
ssmService,
kmsService,
apiGatewayService,
apiGatewayV2Service,
ecrService,
pipesService,
lambdaLayerService,
objectMapper,
customResourceResponseStore,
reachableEndpoint,
ec2Service,
eksService,
logsService,
kinesisService,
cloudWatchMetricsService,
firehoseService,
resourceRegistry,
dynamicReferences,
config);