Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

removed dead methods (#13308)

Damian Legawiec92c2b523e508
diff --git a/admin/app/models/spree/admin/navigation.rb b/admin/app/models/spree/admin/navigation.rb
index 722dd62396..cfcf66a3dd 100644
--- a/admin/app/models/spree/admin/navigation.rb
+++ b/admin/app/models/spree/admin/navigation.rb
@@ -148,31 +148,6 @@ module Spree
root_items
end
- # Get breadcrumb trail for a path
- def breadcrumbs_for(current_path, context = nil)
- breadcrumbs = []
-
- # Find active item
- active_item = find_active_item(current_path, context)
-
- # Build breadcrumb trail
- while active_item
- breadcrumbs.unshift(active_item)
- active_item = active_item.parent_key ? find(active_item.parent_key) : nil
- end
-
- breadcrumbs
- end
-
- # Find the active item for current path
- def find_active_item(current_path, context = nil)
- # Check all items, deepest match wins
- active_items = @items.values.select { |item| item.active?(current_path, context) }
-
- # Return the one with the longest URL match
- active_items.max_by { |item| item.resolve_url(context)&.length || 0 }
- end
-
# Clear all items
def clear
@items.clear