Mercurial > hg > xemacs-beta
diff src/scrollbar.c @ 2286:04bc9d2f42c7
[xemacs-hg @ 2004-09-20 19:18:55 by james]
Mark all unused parameters as unused. Also eliminate some unneeded local
variables.
author | james |
---|---|
date | Mon, 20 Sep 2004 19:20:08 +0000 |
parents | a19b0eb5dfc1 |
children | 3de172a37a93 |
line wrap: on
line diff
--- a/src/scrollbar.c Mon Sep 20 19:11:29 2004 +0000 +++ b/src/scrollbar.c Mon Sep 20 19:20:08 2004 +0000 @@ -437,7 +437,9 @@ 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; +#if 0 struct window *new_window = 0; /* #### currently unused */ +#endif end_pos = BUF_Z (b) - w->window_end_pos[CURRENT_DISP]; sb_pos = scrollbar_point (w, 0); @@ -528,7 +530,9 @@ new_slider_size = min ((end_pos - start_pos), (new_maximum - new_minimum)); new_slider_position = sb_pos; +#if 0 new_window = w; +#endif } } else if (!MINI_WINDOW_P (w)) @@ -620,9 +624,9 @@ } static void -vertical_scrollbar_changed_in_window (Lisp_Object specifier, +vertical_scrollbar_changed_in_window (Lisp_Object UNUSED (specifier), struct window *w, - Lisp_Object oldval) + Lisp_Object UNUSED (oldval)) { /* Hold on your cerebella guys. If we always show the dividers, changing scrollbar affects only how the text and scrollbar are @@ -642,8 +646,9 @@ /* This function is called as a result of a change to the `scrollbar-pointer' glyph. */ static void -scrollbar_pointer_changed_in_window (Lisp_Object specifier, struct window *w, - Lisp_Object oldval) +scrollbar_pointer_changed_in_window (Lisp_Object UNUSED (specifier), + struct window *w, + Lisp_Object UNUSED (oldval)) { struct frame *f = XFRAME (WINDOW_FRAME (w));