Remove unused code in globalizable concern

This code was added in commit 041abe904, but it was never used.
This commit is contained in:
Javi Martín
2024-05-23 22:56:41 +02:00
parent c11780880c
commit 790d515afc

View File

@@ -13,10 +13,6 @@ module Globalizable
translations.reject(&:marked_for_destruction?).map(&:locale) translations.reject(&:marked_for_destruction?).map(&:locale)
end end
def locales_marked_for_destruction
I18n.available_locales - locales_not_marked_for_destruction
end
def locales_persisted_and_marked_for_destruction def locales_persisted_and_marked_for_destruction
translations.select { |t| t.persisted? && t.marked_for_destruction? }.map(&:locale) translations.select { |t| t.persisted? && t.marked_for_destruction? }.map(&:locale)
end end