From fe9c2bb9e3356e1adea248e17bd13b880c73fd64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Hedin=20Br=C3=B8nner?= Date: Mon, 25 Sep 2017 14:43:11 +0200 Subject: [PATCH] Remove obsolete code Navigation and moving is handled by `PreviewedWindowNavigator` now. --- tiling.js | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/tiling.js b/tiling.js index acd3443..d57b66d 100644 --- a/tiling.js +++ b/tiling.js @@ -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;