Skip to content

Conversation

@mwvolo
Copy link
Member

@mwvolo mwvolo commented Nov 8, 2025

This commit removes unused legacy code that is no longer referenced anywhere in the codebase:

Removed Handlers (3 files):

  • app/handlers/signup_start.rb
  • app/handlers/signup_verify_email.rb
  • app/handlers/signup_verify_by_token.rb

These handlers were part of the legacy signup flow that has been completely replaced by the newflow signup handlers. No code references these handlers anymore.

Removed Routines (2 files):

  • app/routines/destroy_when_association_empty.rb
  • app/routines/update_user_lead_info.rb

DestroyWhenAssociationEmpty was a utility routine with no callers. UpdateUserLeadInfo was incomplete and never actually called despite a comment referencing it.

Removed Migration (1 file):

  • db/migrate/20191204193412_drop_openstax_salesforce_users.openstax_salesforce.rb

This 2019 migration had a TODO comment indicating it should be removed after all servers have been migrated. The migration has been executed and the table is already dropped.

Updated Files (1 file):

  • lib/tasks/accounts/create_leads_for_instructors_not_sent_to_sf.rake

This commit removes unused legacy code that is no longer referenced
anywhere in the codebase:

Removed Handlers (3 files):
- app/handlers/signup_start.rb
- app/handlers/signup_verify_email.rb
- app/handlers/signup_verify_by_token.rb

These handlers were part of the legacy signup flow that has been
completely replaced by the newflow signup handlers. No code references
these handlers anymore.

Removed Routines (2 files):
- app/routines/destroy_when_association_empty.rb
- app/routines/update_user_lead_info.rb

DestroyWhenAssociationEmpty was a utility routine with no callers.
UpdateUserLeadInfo was incomplete and never actually called despite
a comment referencing it.

Removed Migration (1 file):
- db/migrate/20191204193412_drop_openstax_salesforce_users.openstax_salesforce.rb

This 2019 migration had a TODO comment indicating it should be removed
after all servers have been migrated. The migration has been executed
and the table is already dropped.

Updated Files (1 file):
- lib/tasks/accounts/create_leads_for_instructors_not_sent_to_sf.rake

Removed outdated comment referencing the now-deleted UpdateUserLeadInfo
routine.

All removed code was verified to have zero references in the codebase.
No test files were found for any of the removed code, confirming they
were truly unused.
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.

3 participants