]> git.eshelyaron.com Git - emacs.git/commitdiff
* xterm.c (x_copy_dpy_color, x_focus_on_frame, x_unfocus_frame):
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 9 Mar 2011 06:40:38 +0000 (22:40 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 9 Mar 2011 06:40:38 +0000 (22:40 -0800)
Remove unused functions.

src/ChangeLog
src/xterm.c

index 244a17a61d5792253388ce6f71b7b3cd053a7d89..fcb3cbc5deef89e8ce957c7a55823984ea72606c 100644 (file)
@@ -1,5 +1,8 @@
 2011-03-09  Paul Eggert  <eggert@cs.ucla.edu>
 
+       * xterm.c (x_copy_dpy_color, x_focus_on_frame, x_unfocus_frame):
+       Remove unused functions.
+
        * xfaces.c (clear_face_cache, Fx_list_fonts, Fface_font): Rename
        or move locals to avoid shadowing.
        (tty_defined_color, merge_face_heights): Now static.
index 909b6978f5ab84398dbc5e69475a6cfb59b3e37c..49553e3f1e0f7e675fed35a1431518f6ae89084e 100644 (file)
@@ -1791,27 +1791,6 @@ x_copy_color (struct frame *f, long unsigned int pixel)
 }
 
 
-/* Allocate color PIXEL on display DPY.  PIXEL must already be allocated.
-   It's necessary to do this instead of just using PIXEL directly to
-   get color reference counts right.  */
-
-unsigned long
-x_copy_dpy_color (Display *dpy, Colormap cmap, long unsigned int pixel)
-{
-  XColor color;
-
-  color.pixel = pixel;
-  BLOCK_INPUT;
-  XQueryColor (dpy, cmap, &color);
-  XAllocColor (dpy, cmap, &color);
-  UNBLOCK_INPUT;
-#ifdef DEBUG_X_COLORS
-  register_color (pixel);
-#endif
-  return color.pixel;
-}
-
-
 /* Brightness beyond which a color won't have its highlight brightness
    boosted.
 
@@ -8862,31 +8841,6 @@ x_set_mouse_pixel_position (struct frame *f, int pix_x, int pix_y)
   UNBLOCK_INPUT;
 }
 \f
-/* focus shifting, raising and lowering.  */
-
-void
-x_focus_on_frame (struct frame *f)
-{
-#if 0
-  /* I don't think that the ICCCM allows programs to do things like this
-     without the interaction of the window manager.  Whatever you end up
-     doing with this code, do it to x_unfocus_frame too.  */
-  XSetInputFocus (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f),
-                 RevertToPointerRoot, CurrentTime);
-#endif /* ! 0 */
-}
-
-void
-x_unfocus_frame (struct frame *f)
-{
-#if 0
-  /* Look at the remarks in x_focus_on_frame.  */
-  if (FRAME_X_DISPLAY_INFO (f)->x_focus_frame == f)
-    XSetInputFocus (FRAME_X_DISPLAY (f), PointerRoot,
-                   RevertToPointerRoot, CurrentTime);
-#endif /* ! 0 */
-}
-
 /* Raise frame F.  */
 
 void