Skip to content

chore: delete dead code identified by static analysis #729

Closed

Description

@Sinity

Problem

Static analysis (2026-05-03) identified:

Truly dead (0 references anywhere):

  • polylogue/showcase/context.py — 114 lines, ShowcaseContext class and 6 methods, listed in __all__ but never imported by any production, devtools, or test code

Test-only modules (imported only by tests, not by production or devtools):

  • polylogue/cli/insights_rendering.py — 49 lines, its own docstring says "All per-insight-type renderers are replaced by the generic render_insight_items()" — the retained summarize_archive_debt helper is never called
  • polylogue/archive/query/read_fields.py — 175 lines, ReadFieldDescriptor and READ_FIELD_DESCRIPTORS not wired into production
  • polylogue/cli/shared/qa_finalization.py — 62 lines, finalize_qa_run not wired to a CLI verb
  • polylogue/cli/shared/schema_command_support.py — 61 lines, build_schema_privacy_config has no production caller

Acceptance criteria

  • Delete showcase/context.py — confirmed dead.
  • For the 4 test-only modules: either wire into production callers or delete. insights_rendering.py docstring strongly suggests deletion.
  • Run devtools verify --quick and full test suite after deletion.

Found by

2026-05-03 dead code analysis (wave 4 subagent)

Activity

  1. Sinity commented on May 3, 2026

    @Sinity
    OwnerAuthor

    Closed by #752. Verify: python3 -c "import polylogue.showcase.context" → ModuleNotFoundError (module deleted).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions