Delete dead code

Finds the functions and files your product no longer calls, and deletes them in one reviewed pull request.

What you ask

Search Acme

billing

2
  1. Tom

    @devboxes can you delete the dead code in ledger? one change please

  2. devboxes APP

    #62 removes 9 unused exports and 2 files, the old PDF renderer from before 1.4 among them. Checks pass.

    Opened #62

What devboxes does

  1. Find unused code

    • devboxes lists the unused code it found, with the tool that found it.
  2. Check every candidate

    • Before it removes anything, it makes sure nothing else uses it, across code, scripts, configuration and dynamic imports.
  3. Delete the code

    • After the deletion, a search finds the deleted names only in the commit message.
    • The commit message lists everything that was deleted.
  4. Verify

    1. Install dependencies

    2. Test

    3. Lint

    4. If it fails

      1. Fix

        • The tests pass.
      2. Test again

      3. Lint again

  5. Publish

  6. Review

What you get back

acme / ledger

Remove unused code #62

Open

devboxes[bot] wants to merge 1 commit into main from devboxes/remove-unused-code

devboxes Bot reviewed 2 minutes ago View reviewed changes

devboxes Bot left a comment Author

I searched scripts and dynamic imports as well, and the deleted code appears only in its own files.

All checks have passed

3 successful checks

  • CI / Lint (pull_request) Details
  • CI / Typecheck (pull_request) Details
  • CI / Tests (pull_request) Details

This branch has no conflicts with the base branch

Merging can be performed automatically.

You can also merge this with the command line.

Files changed 3

  • src/invoices/legacy-pdf.ts +0 −184
  • src/dates/legacy-format.ts +0 −22
  • src/customers/index.ts +0 −9

Good for

Startups

More tasks to ship from issues

Ask devboxes to delete dead code

Get started for free