Skip to content

Remove dead matchGlob, parsePresentViewFromArgs, and lookupModelReasoning - #392

Merged
TheGreatAxios merged 1 commit into
mainfrom
cl-5679-dead-code-cleanup-isapproved-adjacent-orphaned-exports
Aug 8, 2026
Merged

Remove dead matchGlob, parsePresentViewFromArgs, and lookupModelReasoning#392
TheGreatAxios merged 1 commit into
mainfrom
cl-5679-dead-code-cleanup-isapproved-adjacent-orphaned-exports

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Collaborator

Summary

  • Deletes three confirmed-dead exports, each with zero production importers (referenced only by their own dedicated test): matchGlob (src/util/glob.ts:41, whole file removed since its only helper existed to support it), parsePresentViewFromArgs (src/tui/tool-args.ts, whole file removed), and lookupModelReasoning (src/cost/pricing-fetcher.ts:183-185).
  • isApproved in src/permission/matcher.ts was intentionally left untouched: the ticket text itself notes it has active-matcher consequences beyond dead code and is tracked separately (grant-scoping-filter ticket), so it was excluded from this bundle despite appearing in the original task list.

Test plan

  • bun run typecheck — pre-existing unrelated errors only (tool-formatter.ts, list-dir.ts, vendor/intx-inference), none in touched files
  • bun run build
  • full suite via test-lock script — 4129 pass, 1 pre-existing unrelated failure (lsp-availability.test.ts, environment-dependent LSP detection against process.cwd())

@linear-code

linear-code Bot commented Aug 8, 2026

Copy link
Copy Markdown

CL-5679

@TheGreatAxios
TheGreatAxios force-pushed the cl-5679-dead-code-cleanup-isapproved-adjacent-orphaned-exports branch from 81fbbda to d002502 Compare August 8, 2026 18:57
…ning

Each had zero production importers, referenced only by its own dedicated
test. matchGlob was src/util/glob.ts:41 (whole file removed, its only
other function globToRegex existed solely to support it);
parsePresentViewFromArgs was src/tui/tool-args.ts (whole file removed);
lookupModelReasoning was src/cost/pricing-fetcher.ts:183-185.
@TheGreatAxios
TheGreatAxios force-pushed the cl-5679-dead-code-cleanup-isapproved-adjacent-orphaned-exports branch from d002502 to 290fa70 Compare August 8, 2026 19:14
@TheGreatAxios
TheGreatAxios merged commit 2f6dbd6 into main Aug 8, 2026
3 checks passed
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