From f214c5b572cf073bce481e29276dfa099365b7bb Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Tue, 2 Jul 2019 10:12:08 -0300 Subject: [PATCH] baseAppView: Remove unused BaseAppView.addItem Now that BaseAppView does not allow for subclasses to add and remove items directly, the addItem() method can be removed. Remove BaseAppView.addItem(). https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/645 --- js/ui/appDisplay.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js index 3b9e68fcd..21d4912e3 100644 --- a/js/ui/appDisplay.js +++ b/js/ui/appDisplay.js @@ -148,12 +148,6 @@ class BaseAppView { return this._allItems; } - addItem(icon) { - let id = icon.id; - this._allItems.push(icon); - this._items[id] = icon; - } - _compareItems(a, b) { return a.name.localeCompare(b.name); }