Remove obsolete code

Navigation and moving is handled by `PreviewedWindowNavigator` now.
This commit is contained in:
Tor Hedin Brønner
2017-09-25 14:43:11 +02:00
parent 6f4a77e4bc
commit fe9c2bb9e3
-25
View File
@@ -575,31 +575,6 @@ workspace_removed = (screen, arg1, arg2) => {
let workspace = global.screen.get_workspace_by_index(index);
}
next = () => {
let meta_window = global.display.focus_window
spaces[meta_window.get_workspace().workspace_index][focus()+1].activate(global.get_current_time())
}
previous = () => {
let meta_window = global.display.focus_window
spaces[meta_window.get_workspace().workspace_index][focus()-1].activate(global.get_current_time())
}
move_helper = (meta_window, delta) => {
// NB: delta should be 1 or -1
let ws = spaces[meta_window.get_workspace().workspace_index]
let i = ws.indexOf(meta_window)
if(utils.in_bounds(ws, i+delta)) {
utils.swap(ws, i, i+delta);
ensure_viewport(ws, meta_window, true);
}
}
move_right = () => {
move_helper(global.display.focus_window, 1);
}
move_left = () => {
move_helper(global.display.focus_window, -1);
}
toggle_maximize_horizontally = (meta_window) => {
meta_window = meta_window || global.display.focus_window;