refactor(core): remove Vulture-confirmed dead code - #1153
Merged
Conversation
Signed-off-by: phernandez <paul@basicmachines.co>
14 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Vulture found several production helpers and one complete MCP formatting module
that have no callers. Keeping these paths makes the codebase harder to navigate
and leaves obsolete compatibility layers looking like supported behavior.
This PR removes only findings that were confirmed unused in this repository and
cross-checked against the current Basic Memory Cloud source.
What Changed
basic_memory.mcp.formattingmodule.now-unused import.
type_filterargument from recent-activityformatting and updated its tests.
There are no public API, MCP schema, persistence, or runtime behavior changes.
The net change is 270 deleted lines across five files.
Implementation Details
symbol with exact repository searches.
Alembic, Pydantic, and SQLAlchemy.
Memory Cloud.
uvx; this PR does not add a project dependency or CIrequirement.
Testing
Automated
source .venv/bin/activate && python -m pytest -q tests/mcp/test_tool_recent_activity.py tests/mcp/test_tool_move_note.py tests/repository/test_semantic_search_base.py tests/repository/test_semantic_vector_sync.py tests/repository/test_hybrid_fusion.py tests/repository/test_vector_pagination.py tests/repository/test_vector_threshold.py: 108 passed.source .venv/bin/activate && ruff check src/basic_memory/mcp/tools/move_note.py src/basic_memory/mcp/tools/recent_activity.py src/basic_memory/repository/search_repository_base.py tests/mcp/test_tool_recent_activity.py: passed.source .venv/bin/activate && ruff format --check src/basic_memory/mcp/tools/move_note.py src/basic_memory/mcp/tools/recent_activity.py src/basic_memory/repository/search_repository_base.py tests/mcp/test_tool_recent_activity.py: passed.just fast-check: passed.just fast-test: expanded to the full suite after testmon detected anenvironment change; 4,675 passed and 41 skipped. The sole failure was the
live
postgres-openaisemantic benchmark because OpenAI returned HTTP 429insufficient_quota.git diff --check: passed.Manual
production findings are required framework callback parameters.
helpers.
Risks / Follow-ups
replacing behavior.
SQLite, Postgres, and FastEmbed coverage passed.