about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2019-08-23 10:04:54 +0200
committerMichael Vetter <jubalh@iodoru.org>2019-08-23 10:04:54 +0200
commit62103665e273d79ed4ea831e7e1710b5e6f6846c (patch)
treee02543cbe5b67e756370ef39f0d98d2cfa152b26
parentef86ec6240bc2dbea2020b636cef9c4018f1553a (diff)
downloadprofani-tty-62103665e273d79ed4ea831e7e1710b5e6f6846c.tar.gz
Remove unused code in cmd_room() about win num
There is actually no reason to get the window number here.
-rw-r--r--src/command/cmd_funcs.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/command/cmd_funcs.c b/src/command/cmd_funcs.c
index a64e70b2..eba9aa83 100644
--- a/src/command/cmd_funcs.c
+++ b/src/command/cmd_funcs.c
@@ -4309,12 +4309,6 @@ cmd_room(ProfWin *window, const char *const command, gchar **args)
 
     ProfMucWin *mucwin = (ProfMucWin*)window;
     assert(mucwin->memcheck == PROFMUCWIN_MEMCHECK);
-    int num = wins_get_num(window);
-
-    int ui_index = num;
-    if (ui_index == 10) {
-        ui_index = 0;
-    }
 
     if (g_strcmp0(args[0], "accept") == 0) {
         gboolean requires_config = muc_requires_config(mucwin->roomjid);