Skip to content

Commit f91afb8

Browse files
dadachiclaude
andcommitted
Remove dead code: unused gems and locale keys
Verified-unreferenced removals (every grep below ran across app/, lib/, config/ and matched only the definition site): - gem "jbuilder" — no .jbuilder views, no JBuilder usage; all responses go through jsonapi-serializer - gem "inline_svg" — no inline_svg helper calls anywhere - locale `forgot_your_password` — no callers - locale `send_me_reset_password_instructions` — no callers - locale `api.shopkeeper.accounts.owner_required` — no callers - locale `api.shopkeeper.accounts.admin_required` — no callers Kept `validate_sign_up_params` / `validate_account_update_params` overrides in RegistrationsController despite looking unused — the parent class wires them up via `before_action` (verified in the gem source). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent f6ad1c5 commit f91afb8

3 files changed

Lines changed: 0 additions & 16 deletions

File tree

Gemfile

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@ gem "turbo-rails", "~> 2.0.3"
2020
# Hotwire's modest JavaScript framework [https://stimulus.hotwired.dev]
2121
gem "stimulus-rails", "~> 1.0", ">= 1.0.2"
2222

23-
# Build JSON APIs with ease [https://github.com/rails/jbuilder]
24-
gem "jbuilder", "~> 2.14"
25-
2623
# Solid adapters for queue, cache, and cable (database-backed, no Redis needed)
2724
gem "solid_queue"
2825
gem "solid_cable"
@@ -49,7 +46,6 @@ gem "aasm"
4946
gem "after_commit_everywhere", "~> 1.6"
5047
gem "config"
5148
gem "acts_as_tenant"
52-
gem "inline_svg", "~> 1.10"
5349
gem "pagy", "~> 43"
5450
gem "seed-fu", "~> 2.3"
5551
gem "whenever", require: false

Gemfile.lock

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -179,18 +179,12 @@ GEM
179179
activesupport (>= 6.0.0)
180180
railties (>= 6.0.0)
181181
iniparse (1.5.0)
182-
inline_svg (1.10.0)
183-
activesupport (>= 3.0)
184-
nokogiri (>= 1.6)
185182
io-console (0.8.2)
186183
irb (1.17.0)
187184
pp (>= 0.6.0)
188185
prism (>= 1.3.0)
189186
rdoc (>= 4.0.0)
190187
reline (>= 0.4.2)
191-
jbuilder (2.14.1)
192-
actionview (>= 7.0.0)
193-
activesupport (>= 7.0.0)
194188
json (2.19.3)
195189
json-schema (6.2.0)
196190
addressable (~> 2.8)
@@ -494,8 +488,6 @@ DEPENDENCIES
494488
erb_lint
495489
image_processing (~> 1.12)
496490
importmap-rails
497-
inline_svg (~> 1.10)
498-
jbuilder (~> 2.14)
499491
jsonapi-serializer
500492
madmin (~> 2.0)
501493
mailbin

config/locales/en.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@
3232
en:
3333
hello: "hello"
3434
welcome: "welcome"
35-
forgot_your_password: "Forgot your password?"
36-
send_me_reset_password_instructions: "Send me reset password instructions"
3735
change_my_password: "Change my password"
3836
change_your_password: "Change your password"
3937
confirm_new_password: "Confirm new password"
@@ -45,8 +43,6 @@ en:
4543
api:
4644
shopkeeper:
4745
accounts:
48-
owner_required: "Only account owner is allowed to do that."
49-
admin_required: "Only account admins are allowed to do that."
5046
personal:
5147
cannot_delete: "You cannot delete your personal account."
5248
accounts_invitations:

0 commit comments

Comments
 (0)