Teknium
8d023e43ed
refactor: remove dead code — 1,784 lines across 77 files (#9180)
Deep scan with vulture, pyflakes, and manual cross-referencing identified:
- 41 dead functions/methods (zero callers in production)
- 7 production-dead functions (only test callers, tests deleted)
- 5 dead constants/variables
- ~35 unused imports across agent/, hermes_cli/, tools/, gateway/
Categories of dead code removed:
- Refactoring leftovers: _set_default_model, _setup_copilot_reasoning_selection,
rebuild_lookups, clear_session_context, get_logs_dir, clear_session
- Unused API surface: search_models_dev, get_pricing, skills_categories,
get_read_files_summary, clear_read_tracker, menu_labels, get_spinner_list
- Dead compatibility wrappers: schedule_cronjob, list_cronjobs, remove_cronjob
- Stale debug helpers: get_debug_session_info copies in 4 tool files
(centralized version in debug_helpers.py already exists)
- Dead gateway methods: send_emote, send_notice (matrix), send_reaction
(bluebubbles), _normalize_inbound_text (feishu), fetch_room_history
(matrix), _start_typing_indicator (signal), parse_feishu_post_content
- Dead constants: NOUS_API_BASE_URL, SKILLS_TOOL_DESCRIPTION,
FILE_TOOLS, VALID_ASPECT_RATIOS, MEMORY_DIR
- Unused UI code: _interactive_provider_selection,
_interactive_model_selection (superseded by prompt_toolkit picker)
Test suite verified: 609 tests covering affected files all pass.
Tests for removed functions deleted. Tests using removed utilities
(clear_read_tracker, MEMORY_DIR) updated to use internal APIs directly.
2026-04-13 16:32:04 -07:00
..
2026-02-26 03:20:08 +03:00
2026-04-07 17:19:07 -07:00
2026-04-07 17:19:07 -07:00
2026-04-13 05:12:36 -07:00
2026-04-04 16:55:13 -07:00
2026-04-07 17:19:07 -07:00
2026-04-07 17:19:07 -07:00
2026-04-12 02:05:20 -07:00
2026-04-10 05:19:21 -07:00
2026-04-10 12:51:19 -07:00
2026-04-10 05:19:21 -07:00
2026-04-08 13:46:30 -07:00
2026-04-13 04:46:13 -07:00
2026-04-07 17:59:42 -07:00
2026-03-18 03:17:37 -07:00
2026-03-18 03:22:58 -07:00
2026-04-09 16:24:53 -07:00
2026-04-12 16:40:37 -07:00
2026-04-11 01:52:58 -07:00
2026-03-28 14:26:32 -07:00
2026-03-09 21:36:29 -07:00
2026-04-12 00:33:42 -07:00
2026-04-10 05:52:45 -07:00
2026-04-09 21:54:32 -07:00
2026-04-07 17:19:07 -07:00
2026-04-05 23:31:20 -07:00
2026-04-13 10:50:52 -07:00
2026-04-12 16:36:11 -07:00
2026-04-10 03:44:43 -07:00
2026-03-14 19:18:10 -07:00
2026-04-12 01:44:18 -07:00
2026-04-12 18:05:14 -07:00
2026-04-09 16:24:53 -07:00
2026-03-15 06:46:28 -07:00
2026-04-13 04:35:37 -07:00
2026-04-09 16:24:53 -07:00
2026-03-14 12:11:23 -07:00
2026-04-12 16:36:11 -07:00
2026-04-10 21:15:47 -07:00
2026-04-11 14:44:29 -07:00
2026-04-07 17:19:07 -07:00
2026-03-29 21:54:36 -07:00
2026-04-11 17:23:36 -07:00
2026-03-30 17:34:43 -07:00
2026-04-11 15:34:57 -07:00
2026-03-17 03:48:44 -07:00
2026-04-12 21:22:59 -07:00
2026-04-12 01:51:57 -07:00
2026-04-10 03:07:00 -07:00
2026-04-08 19:58:16 -07:00
2026-04-10 02:57:39 -07:00
2026-04-13 16:32:04 -07:00
2026-04-13 04:33:52 -07:00
2026-04-07 08:40:22 -04:00
2026-04-07 17:19:07 -07:00
2026-04-10 05:52:45 -07:00
2026-04-10 14:46:57 -07:00
2026-03-16 06:07:45 -07:00
2026-03-14 10:35:14 -07:00
2026-04-13 16:32:04 -07:00
2026-04-10 19:15:50 -07:00
2026-04-13 16:32:04 -07:00
2026-04-01 11:20:33 -07:00
2026-04-12 12:22:34 -07:00
2026-04-09 14:20:16 -07:00
2026-04-13 10:50:52 -07:00
2026-03-08 17:42:50 -07:00
2026-03-25 18:06:04 -07:00
2026-03-31 11:41:12 -07:00
2026-04-09 16:24:53 -07:00
2026-04-10 21:15:59 -07:00
2026-04-10 03:44:43 -07:00
2026-04-10 02:57:39 -07:00
2026-04-09 12:15:06 -07:00
2026-03-15 21:16:21 -07:00
2026-04-12 16:36:11 -07:00
2026-04-03 10:10:53 -07:00
2026-04-11 15:38:43 -07:00
2026-03-17 01:59:07 -07:00
2026-03-28 14:32:23 -07:00
2026-03-11 00:50:39 -07:00
2026-04-13 16:32:04 -07:00
2026-04-07 08:40:22 -04:00
2026-04-09 16:24:53 -07:00
2026-03-30 11:17:15 -07:00
2026-04-10 02:57:39 -07:00
2026-04-13 16:32:04 -07:00
2026-03-29 20:05:59 -07:00
2026-04-13 04:59:26 -07:00
2026-03-26 13:39:41 -07:00
2026-04-10 00:32:20 -07:00
2026-04-10 05:53:10 -07:00
2026-04-12 02:33:21 -07:00
2026-04-13 05:16:21 -07:00
2026-04-12 22:26:28 -07:00
2026-03-28 14:33:35 -07:00
2026-04-11 11:17:52 -07:00