mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-11-24 14:17:44 +00:00
* Chore: remove unused is_file_ext_supported Nothing in production called it, only its own test. * Chore: remove unused Tag.parent_pk It was an alias of tn_parent_id used only by two test asserts, which now use tn_parent_id directly. * Chore: remove unused SanityCheckMessages summary properties has_global_issues was never referenced and total_issue_count was only asserted in tests. The two private issue counters that fed it are removed as well, and the tests assert on has_error and has_warning instead. * Chore: remove unused DocumentViewSet._has_document_permissions It duplicated has_document_operation_permissions and had no callers. * Chore: remove legacy DocumentParser base class Parsers are resolved through the parser registry and ParserProtocol now, and nothing referenced this class. Its now unused imports are removed too. * Chore: remove unused ColorField and DeprecatedColors No serializer used ColorField, and DeprecatedColors was only referenced by it. * Chore: remove unused RtlLanguageException A leftover from the old tesseract parser, nothing referenced it. * Chore: remove unused TASK_WORKERS setting An alias of CELERY_WORKER_CONCURRENCY that nothing read. PAPERLESS_TASK_WORKERS is unchanged. * Chore: remove unused GNUPG_HOME setting Nothing read it. The mail GPG code uses EMAIL_GNUPG_HOME. * Chore: remove unused test helpers Drops the shared_samples_dir fixture, MailAttachmentMock, _SHORT_TEXT and _make_extract_text, none of which any test used.