From 62103665e273d79ed4ea831e7e1710b5e6f6846c Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Fri, 23 Aug 2019 10:04:54 +0200 Subject: Remove unused code in cmd_room() about win num There is actually no reason to get the window number here. --- src/command/cmd_funcs.c | 6 ------ 1 file changed, 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); -- cgit 1.4.1-2-gfad0