chore(cleanup): remove orphaned modules, hooks, structs, and cfg(server) stubs #128
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "chore/mapps-141-remove-dead-code"
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?
Strip dead code left behind after the account-management pivot (
69ec755) and later base-image/token-persistence changes. The SPA carries no orphaned auth/login machinery, the tree compiles with no dead exports, and the empty cfg(server) re-exports are gone so they can no longer block a server link.Removed: the entire
hooks::google_oauthmodule; the unuseduse_fetch/use_paginated_fetchhooks plusFetchState/PaginatedData; the dead OIDC flow helperspassword_login,mfa_verify,issuer_get,issuer_post,issuer_post_authed_no_body,issuer_post_authed_empty(withLoginOutcome/MfaVerifyOkand the now-orphanedLoginBody/LoginTokenBundle);use_require_roleanduse_logoutfromhooks::auth; nine dead auth DTO structs and the deadAuthStatere-export from the crate root + prelude; deadTenantUsage/ModuleConfig, the calendar availability/time-off request DTOs,pagination::FilterParams(and its tests), andversion::version_string.The
fetch.rs_doc_anchor_keep_module_groupingno-op is replaced with an explanatory comment, and the billing_force_usesuppressor is dropped (itsAppErrorimport is genuinely live, so the import stays).The empty
auth/{middleware,routes,service}.rsandtickets/{automation,routes,service}.rsstub files re-exported non-existent symbols behind#[cfg(feature = "server")]; since mokosh-apps never enables theserverfeature (axum/sqlx are not client deps) the server halves live in mokosh-server, so the stub files and their re-export lines are deleted rather than filled.error.rs'sserver_implblock cannot be relocated from this client-only repo (that is mokosh-server's concern), so it is documented in place per the shared-copy convention.ContactStatus's straystd::str::FromStris replaced with the module's inherentfrom_str(&str) -> Option<Self>convention.has_any_rolewas flagged as dead at the audit commit (bfd0b31) but PMS-247's team page started calling it the next day; the method is removed and its single call site inlined to thehas_role(..) || has_role(..)disjunction it was sugar for, preserving behavior.#MAPPS-141
Co-Authored-By: Claude Opus 4.8 (1M context) noreply@anthropic.com