Remove dead code from compiler, auth, and config #153
No reviewers
Labels
No labels
domain:backend
domain:devops
domain:frontend
status:approved
status:in-progress
status:needs-fix
status:qa
type:bug
type:devops
type:feature
No milestone
No project
No assignees
1 participant
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ldraney/pal-e-api!153
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "152-dead-code-cleanup"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Removes dead code left behind after the frontend/template removal in PR #151: stale docstring references in the block compiler, unused auth functions, and an unreferenced
secret_keyconfig field.Changes
src/pal_e_docs/blocks/compiler.py: Removed docstring references to deletedsanitize,autolink, andwrap_tablesmodulessrc/pal_e_docs/auth.py: Removedverify_password,authenticate_user,get_current_userfunctions and their unused imports (sqlalchemy.orm.Session,starlette.requests.Request,pal_e_docs.models.User). Onlyhash_passwordremains (still imported bymain.py)src/pal_e_docs/config.py: Removedsecret_keyfield (not referenced anywhere in the codebase)Test Plan
ruff check src/passes with no violationssecret_keyReview Checklist
Related
Self-Review: LGTM
Diff audit (3 files, +1 / -30):
compiler.py-- Only the stale docstring referencing deletedsanitize,autolink,wrap_tablesmodules was trimmed. No functional code touched.auth.py-- Removed 3 unused functions (verify_password,authenticate_user,get_current_user) and 3 imports that only those functions needed.hash_password+bcryptimport remain (still used bymain.py).config.py-- Removedsecret_keyfield. Grep confirmed zero references anywhere insrc/ortests/.Verification:
ruff check src/-- cleanpytest tests/ -v-- 497 passed