Delete Unused Helper Functions

This commit is contained in:
Neal Chambers
2023-09-04 12:27:33 +09:00
parent b1e40ed605
commit 2da9ffd3cb
2 changed files with 1 additions and 16 deletions

View File

@@ -117,18 +117,7 @@ module InjectionHelper
def inject_enterprise_attributes(enterprise_attributes)
render partial: "json/injection_ams",
locals: { name: 'enterpriseAttributes', json: @enterprise_attributes.to_json.to_s }
end
def inject_orders
inject_json_array "orders", @orders.all, Api::OrderSerializer
end
def inject_shops
customers = spree_current_user.customers
shops = Enterprise.where(id: @orders.pluck(:distributor_id).uniq |
customers.pluck(:enterprise_id))
inject_json_array "shops", shops.all, Api::ShopForOrdersSerializer
locals: { name: 'enterpriseAttributes', json: enterprise_attributes.to_json.to_s }
end
def inject_saved_credit_cards

View File

@@ -40,10 +40,6 @@ module ShopHelper
}
end
def shop_tab_names
shop_tabs.map { |tab| tab[:name] }
end
def show_home_tab?
require_customer? || current_distributor.preferred_shopfront_message.present?
end