Skip to content

refactor: remove dead code across monorepo (~762 lines) - #138

Merged
h4yfans merged 3 commits into
mainfrom
refactor/dead-code-cleanup
Apr 3, 2026
Merged

refactor: remove dead code across monorepo (~762 lines)#138
h4yfans merged 3 commits into
mainfrom
refactor/dead-code-cleanup

Conversation

@h4yfans

@h4yfans h4yfans commented Apr 3, 2026

Copy link
Copy Markdown
Collaborator

What

Remove unused exports, files, and superseded schemas across the monorepo.

Why

Dead code accumulates from speculative scaffolding and schema evolution. These 762 lines had zero callers and added maintenance surface without value.

How

  • Automated detection via grep-based export/import analysis across all packages
  • Safe deletion loop: test suite run after each removal, revert on failure
  • 6 entire files deleted (handler-utils, 5 unused hooks)
  • 11 unused functions removed from multi-export files
  • Superseded per-type reminder schemas removed in favor of unified CreateReminderSchema
  • 2 schemas un-exported (kept as internal-only)
  • 25 orphaned test cases removed

Type

  • refactor — restructure without behavior change

Test plan

  • Unit tests added/updated
  • Manual testing (describe below)

Each deletion verified independently: 236 test files, 5373 tests passing after every change. Full verification pipeline (lint + typecheck + tests + IPC contracts) green.

Checklist

  • Self-reviewed the diff
  • No hardcoded secrets or credentials
  • Files stay under ~500 LOC
  • Follows immutable data patterns

h4yfans added 3 commits April 3, 2026 21:09
Delete 6 unused files (handler-utils, 5 scaffolded hooks), remove 11
unused exported functions, un-export 2 internal-only schemas, and drop
superseded reminder schemas with their 25 orphaned tests.

Verified: 236 test files, 5373 tests passing, typecheck green.
Take main's refactored use-inbox barrel file, remove dead re-exports
(useLinkToNote, useInboxProcessingErrors) from new sub-modules.
Regenerate IPC invoke map.
@h4yfans
h4yfans merged commit 20033ac into main Apr 3, 2026
3 checks passed
@h4yfans
h4yfans deleted the refactor/dead-code-cleanup branch April 3, 2026 21:59
h4yfans added a commit that referenced this pull request May 6, 2026
refactor: remove dead code across monorepo (~762 lines)
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