Skip to content

Remove dead code across routes, models, views, and locales#1036

Open
raulriera wants to merge 1 commit into
masterfrom
confident-sutherland-f7301e
Open

Remove dead code across routes, models, views, and locales#1036
raulriera wants to merge 1 commit into
masterfrom
confident-sutherland-f7301e

Conversation

@raulriera
Copy link
Copy Markdown
Member

@raulriera raulriera commented May 16, 2026

Summary

Cleans up dead code identified by an audit. Restricts resources :reviews to %i[index new create] since show/edit/update/destroy were unimplemented and unreachable. Removes the unused Treatment.valid scope and the Appointment#ciphered_url / #ciphered_review_url instance methods (the class method ciphered_review_url_for_id is the one used in production). Deletes the unused _modal.html.erb partial, the empty PracticesHelper module, and two unreferenced image assets. Prunes ~20 dead i18n keys across en/es/pt, keeping all pluralization forms and framework-referenced keys.

Test plan

  • bin/rails test passes (455 runs, 0 failures)
  • Public pages render: signin, signup, privacy, terms
  • Removed reviews routes return "No route matches" for /reviews/:id and /reviews/:id/edit
  • Signed up a fresh practice and every authenticated page renders without errors

… locales

Restricted reviews to %i[index new create] (show/edit/update/destroy were unimplemented),
removed the unused Treatment.valid scope and Appointment#ciphered_url / #ciphered_review_url
instance methods (the class method is the one used in production), deleted the unused
_modal.html.erb partial, empty PracticesHelper, two unreferenced image assets, and ~20 dead
i18n keys across en/es/pt.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant