]> git.eshelyaron.com Git - emacs.git/commitdiff
; * src/xterm.c (x_alloc_nearest_color_1): Remove extraneous code.
authorPo Lu <luangruo@yahoo.com>
Fri, 4 Feb 2022 07:39:45 +0000 (15:39 +0800)
committerPo Lu <luangruo@yahoo.com>
Fri, 4 Feb 2022 07:39:45 +0000 (15:39 +0800)
src/xterm.c

index 874baa20f8c7f460f79cea54f80b4f829ab5e82c..deaa5b5961cc28ca9168d1827bab2d074d493eb9 100644 (file)
@@ -3096,7 +3096,6 @@ x_alloc_nearest_color_1 (Display *dpy, Colormap cmap, XColor *color)
 
       cells = x_color_cells (dpy, &no_cells);
 
-      XQueryColors (dpy, cmap, cells, no_cells);
       nearest = 0;
       /* I'm assuming CSE so I'm not going to condense this. */
       nearest_delta = ((((color->red >> 8) - (cells[0].red >> 8))