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 9da49606f7
commit f214c5b572
No known key found for this signature in database
GPG Key ID: 886C17EE170D1385

View File

@ -148,12 +148,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);
} }