From 43bed5bb09c029b2535f937dc85ebbf74b3279ee Mon Sep 17 00:00:00 2001 From: Emanuele Giaquinta Date: Sun, 7 Dec 2008 15:49:04 +0000 Subject: [PATCH] Simplify and remove dead code. git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4949 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-text/mainwindows.c | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/src/fe-text/mainwindows.c b/src/fe-text/mainwindows.c index 55c87e5c..ddd56f84 100644 --- a/src/fe-text/mainwindows.c +++ b/src/fe-text/mainwindows.c @@ -419,32 +419,19 @@ static void mainwindows_resize_smaller(int xdiff, int ydiff) static void mainwindows_resize_bigger(int xdiff, int ydiff) { GSList *sorted, *tmp; - int moved, space; sorted = mainwindows_get_sorted(FALSE); - moved = 0; for (tmp = sorted; tmp != NULL; tmp = tmp->next) { MAIN_WINDOW_REC *rec = tmp->data; - space = MAIN_WINDOW_TEXT_HEIGHT(rec)-WINDOW_MIN_SIZE; if (ydiff == 0 || tmp->next != NULL) { mainwindow_resize(rec, xdiff, 0); - if (moved > 0) { - rec->first_line += moved; - rec->last_line += moved; - signal_emit("mainwindow moved", 1, rec); - } continue; } /* lowest window - give all the extra space for it */ - space = ydiff; - ydiff -= space; - rec->first_line += moved; - moved += space; - rec->last_line += moved; - - mainwindow_resize(rec, xdiff, space); + rec->last_line += ydiff; + mainwindow_resize(rec, xdiff, ydiff); } g_slist_free(sorted); }