diff options
author | Emanuele Giaquinta <exg@irssi.org> | 2008-12-07 15:49:04 +0000 |
---|---|---|
committer | exg <exg@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2008-12-07 15:49:04 +0000 |
commit | 43bed5bb09c029b2535f937dc85ebbf74b3279ee (patch) | |
tree | 05feb16148fddb0333bd36c82c9ec1052e6fa2ba /src/fe-text/mainwindows.c | |
parent | 04a028d8c9df9a90bc2c3fe1a15b661a74ba8005 (diff) | |
download | irssi-43bed5bb09c029b2535f937dc85ebbf74b3279ee.zip |
Simplify and remove dead code.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4949 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-text/mainwindows.c')
-rw-r--r-- | src/fe-text/mainwindows.c | 17 |
1 files 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); } |