diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2010-10-31 18:10:51 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2010-10-31 18:10:51 +0100 |
commit | fce371e22a14ed55f246e1fe5413c5058b7fcae6 (patch) | |
tree | e7b82b693a4d046a42e008863d07c5fc2245f5f6 /src/gui | |
parent | e442182a9683a713d3d97b452b4361ee0cd1d9a5 (diff) | |
download | weechat-fce371e22a14ed55f246e1fe5413c5058b7fcae6.zip |
Remove unused variables
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/curses/gui-curses-bar-window.c | 4 | ||||
-rw-r--r-- | src/gui/curses/gui-curses-window.c | 3 | ||||
-rw-r--r-- | src/gui/gui-bar-window.c | 8 |
3 files changed, 6 insertions, 9 deletions
diff --git a/src/gui/curses/gui-curses-bar-window.c b/src/gui/curses/gui-curses-bar-window.c index 8b1eb336c..6130ccb04 100644 --- a/src/gui/curses/gui-curses-bar-window.c +++ b/src/gui/curses/gui-curses-bar-window.c @@ -422,7 +422,7 @@ gui_bar_window_draw (struct t_gui_bar_window *bar_window, int length_on_screen; int chars_available, index, size; int length_screen_before_cursor, length_screen_after_cursor; - int total_length_screen, diff, max_length, optimal_number_of_lines; + int diff, max_length, optimal_number_of_lines; int some_data_not_displayed; if (!gui_init_ok) @@ -563,8 +563,6 @@ gui_bar_window_draw (struct t_gui_bar_window *bar_window, length_screen_after_cursor = 0; } - total_length_screen = length_screen_before_cursor + length_screen_after_cursor; - diff = length_screen_before_cursor - chars_available; if (diff > 0) { diff --git a/src/gui/curses/gui-curses-window.c b/src/gui/curses/gui-curses-window.c index 865d1c488..7e215a5b7 100644 --- a/src/gui/curses/gui-curses-window.c +++ b/src/gui/curses/gui-curses-window.c @@ -330,11 +330,10 @@ gui_window_set_custom_color_fg_bg (WINDOW *window, int fg, int bg) void gui_window_set_custom_color_fg (WINDOW *window, int fg) { - int current_attr, current_bg; + int current_bg; if ((fg >= 0) && (fg < GUI_CURSES_NUM_WEECHAT_COLORS)) { - current_attr = window_current_style_attr; current_bg = window_current_style_bg; gui_window_remove_color_style (window, A_BOLD); gui_window_set_color_style (window, gui_weechat_colors[fg].attributes); diff --git a/src/gui/gui-bar-window.c b/src/gui/gui-bar-window.c index c3d6099ba..263292f4d 100644 --- a/src/gui/gui-bar-window.c +++ b/src/gui/gui-bar-window.c @@ -440,8 +440,8 @@ gui_bar_window_content_get_with_filling (struct t_gui_bar_window *bar_window, char *ptr_content, *content, reinit_color[32], reinit_color_space[32]; char *item_value, *item_value2, ****split_items, **linear_items; int index_content, content_length, i, first_sub_item, sub, j, k, index; - int length_reinit_color, length_reinit_color_space; - int length, max_length, max_length_screen, total_items, columns, lines; + int length_reinit_color_space, length, max_length, max_length_screen; + int total_items, columns, lines; if (!bar_window->items_subcount || !bar_window->items_content || !bar_window->items_refresh_needed) @@ -450,7 +450,6 @@ gui_bar_window_content_get_with_filling (struct t_gui_bar_window *bar_window, snprintf (reinit_color, sizeof (reinit_color), "%c", GUI_COLOR_RESET_CHAR); - length_reinit_color = strlen (reinit_color); snprintf (reinit_color_space, sizeof (reinit_color_space), "%c ", @@ -1147,7 +1146,8 @@ gui_bar_window_print_log (struct t_gui_bar_window *bar_window) { log_printf (" items_subcount[%03d]. . : %d", i, bar_window->items_subcount[i]); - if (bar_window->items_content && bar_window->bar->items_array) + if (bar_window->items_content && bar_window->bar + && bar_window->bar->items_array) { for (j = 0; j < bar_window->items_subcount[i]; j++) { |