From: Paul Eggert Date: Fri, 1 Apr 2011 17:44:26 +0000 (-0700) Subject: * xterm.c (x_scroll_bar_to_input_event) [!USE_GTK]: X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~394^2~69 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=9ae848fc4a017cbb0bfd22ebc5c11c2fe9e232a0;p=emacs.git * xterm.c (x_scroll_bar_to_input_event) [!USE_GTK]: Remove var that is set but not used. --- diff --git a/src/ChangeLog b/src/ChangeLog index 9c1b17f8996..6a7f35f64f8 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,8 @@ 2011-04-01 Paul Eggert + * xterm.c (x_scroll_bar_to_input_event) [!USE_GTK]: + Remove var that is set but not used. + * xfaces.c (realize_named_face): Remove vars that are set but not used. (map_tty_color) [!defined MSDOS]: Likewise. diff --git a/src/xterm.c b/src/xterm.c index dc1fd3cbbd1..6bfe503c97e 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -4240,14 +4240,12 @@ x_scroll_bar_to_input_event (XEvent *event, struct input_event *ievent) { XClientMessageEvent *ev = (XClientMessageEvent *) event; Lisp_Object window; - struct frame *f; struct window *w; w = scroll_bar_windows[ev->data.l[0]]; scroll_bar_windows[ev->data.l[0]] = NULL; XSETWINDOW (window, w); - f = XFRAME (w->frame); ievent->kind = SCROLL_BAR_CLICK_EVENT; ievent->frame_or_window = window; @@ -4255,7 +4253,8 @@ x_scroll_bar_to_input_event (XEvent *event, struct input_event *ievent) #ifdef USE_GTK ievent->timestamp = CurrentTime; #else - ievent->timestamp = XtLastTimestampProcessed (FRAME_X_DISPLAY (f)); + ievent->timestamp = + XtLastTimestampProcessed (FRAME_X_DISPLAY (XFRAME (w->frame))); #endif ievent->part = ev->data.l[1]; ievent->code = ev->data.l[2];