From 63e847e2317e84803965aa0cea51e774fbd8c576 Mon Sep 17 00:00:00 2001 From: Tomasz Donarski Date: Tue, 17 Oct 2023 09:22:59 +0200 Subject: [PATCH] Cleanup - remove superfluous method --- app/models/spree/admin/main_menu/root.rb | 4 ---- 1 file changed, 4 deletions(-) diff --git a/app/models/spree/admin/main_menu/root.rb b/app/models/spree/admin/main_menu/root.rb index 86af3528e1..fd2823aa50 100644 --- a/app/models/spree/admin/main_menu/root.rb +++ b/app/models/spree/admin/main_menu/root.rb @@ -7,10 +7,6 @@ class Root < Section def initialize super('root', 'root', nil, nil, []) end - - def add_to_section(section_key, item) - @items.find { |e| e.key == section_key }.add_item(item) - end end end end