Skip to content

chore(toolkit-lib): remove dead orphan helper functions - #1737

Merged
aws-cdk-automation merged 1 commit into
mainfrom
sai/orphan-cleanup
Jul 17, 2026
Merged

chore(toolkit-lib): remove dead orphan helper functions#1737
aws-cdk-automation merged 1 commit into
mainfrom
sai/orphan-cleanup

Conversation

@sai-ray

@sai-ray sai-ray commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

This PR removes three unused exported helpers from the orphan module along with the now unused PATH_METADATA_KEY import. All live in packages/@aws-cdk/toolkit-lib/lib/api/orphan/private/helpers.ts:

None of these have any call sites, no tests nor are they accessible for programmatic users.

Fixes #

Checklist

  • This change contains a major version upgrade for a dependency and I confirm all breaking changes are addressed
    • Release notes for the new version:

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

Remove three unused exported helpers from the orphan module along with the
now-unused PATH_METADATA_KEY import:

- findResourcesByPath
- findBlockingResources
- hasAnyCdkPathMetadata

None have any call sites; they were left over from earlier iterations of the
orphan feature.
@github-actions

Copy link
Copy Markdown
Contributor

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.59%. Comparing base (e6d4c0b) to head (98149b1).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1737   +/-   ##
=======================================
  Coverage   89.59%   89.59%           
=======================================
  Files          78       78           
  Lines       11790    11790           
  Branches     1655     1655           
=======================================
  Hits        10563    10563           
  Misses       1198     1198           
  Partials       29       29           
Flag Coverage Δ
suite.unit 89.59% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@mrgrain mrgrain left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

@aws-cdk-automation
aws-cdk-automation added this pull request to the merge queue Jul 17, 2026
Merged via the queue into main with commit a1c7075 Jul 17, 2026
46 checks passed
@aws-cdk-automation
aws-cdk-automation deleted the sai/orphan-cleanup branch July 17, 2026 23:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants