]> git.eshelyaron.com Git - emacs.git/commitdiff
* xfaces.c (free_realized_faces_for_fontset): Remove; not used.
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 9 Mar 2011 06:23:48 +0000 (22:23 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 9 Mar 2011 06:23:48 +0000 (22:23 -0800)
src/ChangeLog
src/xfaces.c

index 1f8e0f6b8e308caa032d1e24217ded3c8ccd6e07..fb266a71a0fe66129f720a585b84d03a174d156c 100644 (file)
@@ -3,6 +3,7 @@
        * 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.
+       (free_realized_faces_for_fontset): Remove; not used.
 
        * terminal.c (store_terminal_param): Now static.
 
index d463175ed2c88704bf33a7377b3ec3771f11c248..b49675a7d8ec3bf88268c03fa47eb15f205ecc83 100644 (file)
@@ -4312,45 +4312,6 @@ free_realized_faces (struct face_cache *c)
 }
 
 
-/* Free all realized faces that are using FONTSET on frame F.  */
-
-void
-free_realized_faces_for_fontset (struct frame *f, int fontset)
-{
-  struct face_cache *cache = FRAME_FACE_CACHE (f);
-  struct face *face;
-  int i;
-
-  /* We must block input here because we can't process X events safely
-     while only some faces are freed, or when the frame's current
-     matrix still references freed faces.  */
-  BLOCK_INPUT;
-
-  for (i = 0; i < cache->used; i++)
-    {
-      face = cache->faces_by_id[i];
-      if (face
-         && face->fontset == fontset)
-       {
-         uncache_face (cache, face);
-         free_realized_face (f, face);
-       }
-    }
-
-  /* Must do a thorough redisplay the next time.  Mark current
-     matrices as invalid because they will reference faces freed
-     above.  This function is also called when a frame is destroyed.
-     In this case, the root window of F is nil.  */
-  if (WINDOWP (f->root_window))
-    {
-      clear_current_matrices (f);
-      ++windows_or_buffers_changed;
-    }
-
-  UNBLOCK_INPUT;
-}
-
-
 /* Free all realized faces on FRAME or on all frames if FRAME is nil.
    This is done after attributes of a named face have been changed,
    because we can't tell which realized faces depend on that face.  */