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
This commit is contained in:
Georges Basile Stavracas Neto 2019-07-02 10:12:08 -03:00
parent 1c172955ee
commit 9c6f558c9e
No known key found for this signature in database
GPG Key ID: 886C17EE170D1385

View File

@ -149,12 +149,6 @@ class BaseAppView {
return this._allItems; return this._allItems;
} }
addItem(icon) {
let id = icon.id;
this._allItems.push(icon);
this._items[id] = icon;
}
_compareItems(a, b) { _compareItems(a, b) {
return a.name.localeCompare(b.name); return a.name.localeCompare(b.name);
} }