diff options
author | Jérémie Courrèges-Anglas <jca@wxcvbn.org> | 2017-09-18 04:47:20 +0200 |
---|---|---|
committer | Jérémie Courrèges-Anglas <jca@wxcvbn.org> | 2017-09-18 04:47:40 +0200 |
commit | b57eea978b752cd347ecccfa76ea6333501af513 (patch) | |
tree | 8ea8333436a2c45dce61caae903fb3f7fa36ea09 /src/window.c | |
parent | 1f8a8e447530376cae591029c6b8c523c9eab123 (diff) | |
download | ratpoison-b57eea978b752cd347ecccfa76ea6333501af513.zip |
Delete more unused code
Diffstat (limited to 'src/window.c')
-rw-r--r-- | src/window.c | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/src/window.c b/src/window.c index 07df96b..dd65a93 100644 --- a/src/window.c +++ b/src/window.c @@ -263,12 +263,6 @@ find_window (Window w) return win; } -void -set_current_window (rp_window *win) -{ - set_frames_window (current_frame(), win); -} - rp_window * find_window_number (int n) { @@ -310,58 +304,12 @@ find_window_name (char *name, int exact_match) return NULL; } -/* Return the previous window in the list. Assumes window is in the - mapped window list. */ -rp_window* -find_window_prev (rp_window *w) -{ - rp_window *cur; - - if (!w) return NULL; - - for (cur = list_prev_entry (w, &rp_mapped_window, node); - cur != w; - cur = list_prev_entry (cur, &rp_mapped_window, node)) - { - if (!find_windows_frame (cur)) - { - return cur; - } - } - - return NULL; -} - -/* Return the next window in the list. Assumes window is in the mapped - window list. */ -rp_window* -find_window_next (rp_window *w) -{ - rp_window *cur; - - if (!w) return NULL; - - for (cur = list_next_entry (w, &rp_mapped_window, node); - cur != w; - cur = list_next_entry (cur, &rp_mapped_window, node)) - { - if (!find_windows_frame (cur)) - { - return cur; - } - } - - return NULL; -} - rp_window * find_window_other (rp_screen *screen) { return group_last_window (rp_current_group, screen); } - - /* Assumes the list is sorted by increasing number. Inserts win into to Right place to keep the list sorted. */ void |