Remove unused code found by vulture (#885)

Deletes functions, methods, classes, schema dataclasses, error classes, Events
senders, and module-level constants that nothing references, including tests.
Also drops the unused `doc_cleanup(test_directory)` and
`_wait_for_sub_job_with_progress(collection_idx)` parameters, and the imports
that only served removed code.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
lrnselfreliance 2026-10-27 15:50:09 -06:00 • committed by GitHub
parent a248104b2f
commit 22ada7eb57
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
34 changed files with 9 additions and 586 deletions

View file

@ -204,7 +204,7 @@ def _auto_create_collections(session: Session, file_group: FileGroup, metadata):
@register_refresh_cleanup
def doc_cleanup(test_directory=None):
def doc_cleanup():
"""Remove empty author/subject collections after refresh."""
from sqlalchemy import func
from wrolpi.collections.models import Collection, CollectionItem