[loop-generated] [refactor] Remove dead code: db_pool.py + agent_core/interface.py (486 lines) #147

Closed
opened 2026-03-15 14:17:16 +00:00 by hermes · 0 comments
Collaborator

Dead Code Found (Cycle 44 Audit)

1. src/infrastructure/db_pool.py - 105 lines

  • Zero imports in src/ or tests/
  • Connection pool that nothing uses

2. src/timmy/agent_core/interface.py - 381 lines

  • Zero imports from production code
  • Only imported by tests/timmy/test_agent_core.py
  • Contains Action, AgentState, TimmyAgent ABC classes that nothing uses

3. src/timmy/agent_core/init.py - empty module

Total: ~486 lines of dead production code + associated test file

Action

  • Delete src/infrastructure/db_pool.py
  • Delete src/timmy/agent_core/interface.py
  • Delete src/timmy/agent_core/init.py
  • Delete tests/timmy/test_agent_core.py
  • Verify tox -e unit passes after removal
## Dead Code Found (Cycle 44 Audit) ### 1. src/infrastructure/db_pool.py - 105 lines - Zero imports in src/ or tests/ - Connection pool that nothing uses ### 2. src/timmy/agent_core/interface.py - 381 lines - Zero imports from production code - Only imported by tests/timmy/test_agent_core.py - Contains Action, AgentState, TimmyAgent ABC classes that nothing uses ### 3. src/timmy/agent_core/__init__.py - empty module ### Total: ~486 lines of dead production code + associated test file ### Action - Delete src/infrastructure/db_pool.py - Delete src/timmy/agent_core/interface.py - Delete src/timmy/agent_core/__init__.py - Delete tests/timmy/test_agent_core.py - Verify tox -e unit passes after removal
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Rockachopa/Timmy-time-dashboard#147