[gnome-shell/gbsneto/cleanup-grid-from-search: 2/2] iconGrid: Remove dead code
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gbsneto/cleanup-grid-from-search: 2/2] iconGrid: Remove dead code
- Date: Mon, 18 May 2020 16:54:27 +0000 (UTC)
commit a2d8c527fd475a7aa8a5081b746ca69c7a62f674
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Mon May 18 13:51:46 2020 -0300
iconGrid: Remove dead code
Remove unused methods from IconGrid.
js/ui/iconGrid.js | 18 ------------------
1 file changed, 18 deletions(-)
---
diff --git a/js/ui/iconGrid.js b/js/ui/iconGrid.js
index 69c3fa52d4..2796a66131 100644
--- a/js/ui/iconGrid.js
+++ b/js/ui/iconGrid.js
@@ -736,16 +736,6 @@ var IconGrid = GObject.registerClass({
return usedWidth + this.leftPadding + this.rightPadding;
}
- removeAll() {
- this._items = [];
- this.remove_all_children();
- }
-
- destroyAll() {
- this._items = [];
- this.destroy_all_children();
- }
-
addItem(item, index) {
if (!(item.icon instanceof BaseIcon))
throw new Error('Only items with a BaseIcon icon property can be added to IconGrid');
@@ -761,14 +751,6 @@ var IconGrid = GObject.registerClass({
this.remove_child(item);
}
- getItemAtIndex(index) {
- return this.get_child_at_index(index);
- }
-
- visibleItemsCount() {
- return this.get_children().filter(c => c.is_visible()).length;
- }
-
setSpacing(spacing) {
this._fixedSpacing = spacing;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]