Dead code: utils/api.ts duplicate client, unused useIsGM/useIsOwner hooks, broken mcpClient #39
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Cleanup (relates to #6)
Verified-unused code paths in the frontend:
Suggested fix
Delete 1 & 2; either implement real MCP protocol support (JSON-RPC over /mcp) or drop mcpClient until needed.
✅ Fixed (commit
05b5453) — verified-zero-imports code deleted:frontend/src/utils/api.ts(whole duplicate layer)frontend/src/hooks/useAuth.ts(unuseduseIsGM/useIsOwner)mcpClientclass +MCP_BASE_URLfrom api/client.ts (~70 lines)Build passes; bundle shrinks by ~1.5kB gzipped of dead weight.