From 8a51dc4e0246bd3b45ade3be6f3fb65c9eb7603b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Maes?= Date: Fri, 23 Jan 2015 16:35:21 +0100 Subject: [PATCH] [IMP] web : remove unused code of systrayMenu --- addons/web/static/src/js/chrome.js | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/addons/web/static/src/js/chrome.js b/addons/web/static/src/js/chrome.js index c316eafbee5..a494bb1a7e4 100644 --- a/addons/web/static/src/js/chrome.js +++ b/addons/web/static/src/js/chrome.js @@ -305,7 +305,7 @@ instance.web.CrashManager = instance.web.Class.extend({ } this.show_warning(error); - //InternalError + //InternalError } else { this.show_error(error); @@ -805,7 +805,6 @@ instance.web.SystrayMenu = instance.web.Widget.extend({ init: function(parent) { this._super(parent); this.items = []; - this.widgets = []; this.load = $.Deferred(); }, start: function() { @@ -820,19 +819,9 @@ instance.web.SystrayMenu = instance.web.Widget.extend({ var self = this; _.each(instance.web.SystrayItems, function(widgetCls) { var cur_systray_item = new widgetCls(self); - self.widgets.push(cur_systray_item); self.items.push(cur_systray_item.appendTo(self.$el)); }); }, - get_widget: function(searched_class){ - for (i = 0; i < this.widgets.length; i++) { - var current = this.widgets[i]; - if(current instanceof searched_class){ - return current; - } - } - return undefined; - } }); instance.web.Menu = instance.web.Widget.extend({