[gnome-shell/gbsneto/icon-grid-part1: 4/5] baseAppView: Remove unused BaseAppView.addItem
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gbsneto/icon-grid-part1: 4/5] baseAppView: Remove unused BaseAppView.addItem
- Date: Mon, 5 Aug 2019 20:52:59 +0000 (UTC)
commit 01a2f1224d1c3f3d2ad069c3ae75fbf2b44ecc51
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Tue Jul 2 10:12:08 2019 -0300
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 0f00e6537..fa9ba0f6d 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -159,12 +159,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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]