From: Paul Eggert Date: Sat, 16 Apr 2011 02:47:50 +0000 (-0700) Subject: * xterm.c (x_alloc_nearest_color_for_widget): Remove; unused. X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~268^2~51 X-Git-Url: https://code.delx.au/gnu-emacs/commitdiff_plain/92bb796d20f0a431ab65c10b9f3d145de40bf234 * xterm.c (x_alloc_nearest_color_for_widget): Remove; unused. --- diff --git a/src/ChangeLog b/src/ChangeLog index 5211c8f99d..4b6fc4fb37 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,7 @@ 2011-04-16 Paul Eggert + * xterm.c (x_alloc_nearest_color_for_widget): Remove; unused. + * xfns.c, xterm.c (_XEditResCheckMessages): Protoize decl. * xdisp.c, dispextern.h (set_vertical_scroll_bar): Now extern if diff --git a/src/xterm.c b/src/xterm.c index 75b66c7600..1a956ee713 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -1451,19 +1451,6 @@ x_frame_of_widget (Widget widget) } -/* Allocate the color COLOR->pixel on the screen and display of - widget WIDGET in colormap CMAP. If an exact match cannot be - allocated, try the nearest color available. Value is non-zero - if successful. This is called from lwlib. */ - -int -x_alloc_nearest_color_for_widget (Widget widget, Colormap cmap, XColor *color) -{ - struct frame *f = x_frame_of_widget (widget); - return x_alloc_nearest_color (f, cmap, color); -} - - /* Allocate a color which is lighter or darker than *PIXEL by FACTOR or DELTA. Try a color with RGB values multiplied by FACTOR first. If this produces the same color as PIXEL, try a color where all RGB