iconGrid: Remove dead code
Remove unused methods from IconGrid. https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1265
This commit is contained in:
parent
400d045a6a
commit
693dd79d28
@ -736,16 +736,6 @@ var IconGrid = GObject.registerClass({
|
|||||||
return usedWidth + this.leftPadding + this.rightPadding;
|
return usedWidth + this.leftPadding + this.rightPadding;
|
||||||
}
|
}
|
||||||
|
|
||||||
removeAll() {
|
|
||||||
this._items = [];
|
|
||||||
this.remove_all_children();
|
|
||||||
}
|
|
||||||
|
|
||||||
destroyAll() {
|
|
||||||
this._items = [];
|
|
||||||
this.destroy_all_children();
|
|
||||||
}
|
|
||||||
|
|
||||||
addItem(item, index) {
|
addItem(item, index) {
|
||||||
if (!(item.icon instanceof BaseIcon))
|
if (!(item.icon instanceof BaseIcon))
|
||||||
throw new Error('Only items with a BaseIcon icon property can be added to IconGrid');
|
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);
|
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) {
|
setSpacing(spacing) {
|
||||||
this._fixedSpacing = spacing;
|
this._fixedSpacing = spacing;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user