workspace: Remove reserved slots

This is a pre-3.0 feature that was dropped before
the 3.0 release, but managed to find its way until
now, 11 years later.

https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1352
This commit is contained in:
Georges Basile Stavracas Neto
2020-06-02 21:22:40 -03:00
committed by Florian Müllner
parent 03bcd4c05b
commit fa97f7141b
2 changed files with 1 additions and 28 deletions

View File

@ -52,14 +52,12 @@ var WorkspacesViewBase = GObject.registerClass({
}
}
_dragBegin(overview, window) {
_dragBegin() {
this._inDrag = true;
this._setReservedSlot(window);
}
_dragEnd() {
this._inDrag = false;
this._setReservedSlot(null);
}
vfunc_allocate(box) {
@ -132,11 +130,6 @@ class WorkspacesView extends WorkspacesViewBase {
this._updateScrollPosition();
}
_setReservedSlot(window) {
for (let i = 0; i < this._workspaces.length; i++)
this._workspaces[i].setReservedSlot(window);
}
getActiveWorkspace() {
let workspaceManager = global.workspace_manager;
let active = workspaceManager.get_active_workspace_index();
@ -311,10 +304,6 @@ class ExtraWorkspaceView extends WorkspacesViewBase {
this.add_actor(this._workspace);
}
_setReservedSlot(window) {
this._workspace.setReservedSlot(window);
}
getActiveWorkspace() {
return this._workspace;
}