Skip to content

fix: remove unused type re-exports, legacy fields, and dead Rust code#450

Merged
xiaolai merged 1 commit intomainfrom
fix/445-remove-dead-code
Mar 17, 2026
Merged

fix: remove unused type re-exports, legacy fields, and dead Rust code#450
xiaolai merged 1 commit intomainfrom
fix/445-remove-dead-code

Conversation

@claude
Copy link
Contributor

@claude claude bot commented Mar 17, 2026

Summary

  • Remove 4 unused type re-exports from settingsStore, editorStore, mediaPopupStore
  • Remove legacy SourcePeekAnchorRect type and anchorRect field/param from sourcePeekStore
  • Remove pathSegments from paths barrel export (only used internally in paths.ts)
  • Remove is_client_connected() dead function and #[allow(dead_code)] suppressed fields from MCP bridge structs
  • Clean up unused SocketAddr/Instant imports

Closes #445

Test plan

  • pnpm check:all passes (lint + tests + coverage + tsc + build)
  • cargo check compiles with no new errors (pre-existing sidecar binary issue in CI only)
  • No runtime behavior changes — all removals are type-only exports or never-read fields

🤖 Generated with Claude Code

Remove dead code identified in audit issue #445:
- Remove unused type re-exports from settingsStore, editorStore, mediaPopupStore
- Remove legacy SourcePeekAnchorRect type and anchorRect field from sourcePeekStore
- Remove pathSegments from paths barrel export (only used internally)
- Remove is_client_connected() dead function from mcp_bridge/commands.rs
- Remove never-read fields from ClientConnection and PendingRequest structs
- Remove never-read pid/parent_process fields from ClientIdentity
- Clean up unused imports (SocketAddr, Instant)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@claude claude bot enabled auto-merge (squash) March 17, 2026 09:49
@xiaolai xiaolai merged commit 85e7a27 into main Mar 17, 2026
3 checks passed
@xiaolai xiaolai deleted the fix/445-remove-dead-code branch March 20, 2026 22:13
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.

[audit] dead-code: unused type re-exports and legacy store fields

1 participant