diff options
author | Jérémie Courrèges-Anglas <jca@wxcvbn.org> | 2014-03-05 03:00:44 +0100 |
---|---|---|
committer | Jérémie Courrèges-Anglas <jca@wxcvbn.org> | 2014-03-24 10:22:55 +0100 |
commit | 977bfad903c35f1e33fc978289404226ac0693e9 (patch) | |
tree | 4612f825fc0c24947fe2390470648ea42f1deca9 /src/window.c | |
parent | 77176d78b15a702d47725738df01eace86ebfa07 (diff) | |
download | ratpoison-977bfad903c35f1e33fc978289404226ac0693e9.zip |
Kill code and simplify cmd_number
* cmd_number needs at least one argument
* The code that handled the zero argument case was thus unreachable,
and was the last user of print_window_information, so kill that
function.
Diffstat (limited to 'src/window.c')
-rw-r--r-- | src/window.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/window.c b/src/window.c index 1caf8e9..de9032a 100644 --- a/src/window.c +++ b/src/window.c @@ -594,21 +594,6 @@ goto_window (rp_window *win) } } -void -print_window_information (rp_group *group, rp_window *win) -{ - rp_window_elem *win_elem; - /* Display the window's number in group. This gives the possibility - of windows existing in multiple groups. */ - win_elem = group_find_window (&group->mapped_windows, win); - if (win_elem) - marked_message_printf (0, 0, MESSAGE_WINDOW_INFORMATION, - win_elem->number, window_name (win)); - else - marked_message_printf (0, 0, "%s doesn't exist in group %d\n", - window_name(win), group->number); -} - /* get the window list and store it in buffer delimiting each window with delim. mark_start and mark_end will be filled with the text positions for the start and end of the current window. */ |