Remove unused variable (value already inspectable)
authorNelson Ferreira <nelson.ferreira@ieee.org>
Sun, 7 Jun 2015 13:31:23 +0000 (09:31 -0400)
committerNelson Ferreira <nelson.ferreira@ieee.org>
Sun, 7 Jun 2015 13:48:32 +0000 (09:48 -0400)
       * src/ui/scrollbar(update_scrollbar_instance): Remove
       'new_window' as its value can be inspected as 'w'.

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
src/ui/scrollbar.c

index 96997b5..6a1a5ef 100644 (file)
@@ -392,7 +392,6 @@ update_scrollbar_instance(struct window *w, int vertical,
        int new_minimum = -1, new_maximum = -1;
        int new_slider_size = -1, new_slider_position = -1;
        int new_width = -1, new_height = -1, new_x = -1, new_y = -1;
-       struct window *new_window = 0;  /* #### currently unused */
 
        end_pos = BUF_Z(b) - w->window_end_pos[CURRENT_DISP];
        sb_pos = scrollbar_point(w, 0);
@@ -474,7 +473,6 @@ update_scrollbar_instance(struct window *w, int vertical,
                        new_slider_size = min((end_pos - start_pos),
                                              (new_maximum - new_minimum));
                        new_slider_position = sb_pos;
-                       new_window = w;
                }
        } else if (!MINI_WINDOW_P(w)) {
                /* The minus one is to account for the truncation glyph. */