Skip to content

Remove dead code: unused methods, scopes, and tests#28

Merged
dadachi merged 1 commit intomainfrom
cleanup/remove-dead-code
Mar 16, 2026
Merged

Remove dead code: unused methods, scopes, and tests#28
dadachi merged 1 commit intomainfrom
cleanup/remove-dead-code

Conversation

@dadachi
Copy link
Copy Markdown
Contributor

@dadachi dadachi commented Mar 16, 2026

Summary

  • Remove Account#personal_account_for? and Account#owner? — never called in production code
  • Remove Shopkeeper .android/.ios scopes — never used in app
  • Remove AccountsInvitation .active/.expired scopes — only the instance method expired? is used
  • Remove corresponding dead tests (7 tests)

Test plan

  • All 398 tests pass (791 assertions, 0 failures)
  • RuboCop clean
  • Brakeman clean

🤖 Generated with Claude Code

- Remove Account#personal_account_for? and Account#owner? (never called)
- Remove Shopkeeper .android/.ios scopes (never used in app)
- Remove AccountsInvitation .active/.expired scopes (only instance
  method expired? is used)
- Remove corresponding dead tests (7 tests)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@dadachi dadachi merged commit 0bd8a9e into main Mar 16, 2026
3 checks passed
@dadachi dadachi deleted the cleanup/remove-dead-code branch March 16, 2026 08:19
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