Skip to content

chore(scripts): remove unused locals - #66

Merged
devin-ai-integration[bot] merged 1 commit into
mainfrom
devin/1795160954-remove-unused-script-locals
Nov 20, 2026
Merged

devin-ai-integration[bot] merged 1 commit into
mainfrom
devin/1795160954-remove-unused-script-locals

Conversation

@shmindmaster

@shmindmaster shmindmaster commented Nov 20, 2026 •

Copy link
Copy Markdown
Owner

What changes

Removes locals nothing reads (8 lines deleted, no behavior change):

  • scripts/generate-data.mjs: r2 (uncalled rounding helper), CUSTOMERS, CELLS (unread arrays; they do not touch the seeded PRNG, so generated bytes are unchanged). DEFECT_CELLS and DEFECT_TYPES are kept: the first is live, the second is named as a contract in references/01-defect-taxonomy.md.
  • scripts/demo-injection.mjs: REPO_ROOT and its now-unused path / fileURLToPath imports.

Evidence that nothing depends on them:

rg -n '\br2\b|\bCUSTOMERS\b|\bCELLS\b' --hidden -g '!.git/**' -g '!package-lock.json' .
# only the three declarations in scripts/generate-data.mjs
rg -n '\b(REPO_ROOT|path|fileURLToPath)\b' scripts/demo-injection.mjs
# only the imports, the declaration, and the word "path" inside a log string

All are unexported module-local bindings; neither script uses eval / new Function.

Evidence

  • npm run verify:all passes on this branch (ALL GREEN, 16 steps)
  • gate (RELEASE ALLOWED), drill (2/2 regressions blocked), lint pass on this branch
  • Positive and refusal paths are covered where relevant (unchanged)
  • A changed or new guard has a mutation that proves it can fail (no guard changed)
  • Generated data was changed through scripts/generate-data.mjs, not by hand (no data/ diff)
  • No secrets, customer data, proprietary prompts, or real operational records are included

Boundary impact

none


Code Reaper opened this PR for Sarosh
Implemented in session Prune dead code and unused deps in heatlot
Review with Devin · Open in Devin Desktop


Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@devin-ai-integration

Copy link
Copy Markdown
Contributor

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

@devin-ai-integration devin-ai-integration Bot 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.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

Devin autoapproved this pull request: Unused-local cleanup leaves script behavior unchanged and adds no dependencies.
Warning: CI check status is not visible here, so the green-CI instruction was not applied.

@devin-ai-integration
devin-ai-integration Bot merged commit 8381cd5 into main Nov 20, 2026
5 checks passed
@shmindmaster
shmindmaster deleted the devin/1795160954-remove-unused-script-locals branch November 24, 2026 23:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant