From: Paul Eggert Date: Wed, 9 Mar 2011 06:23:48 +0000 (-0800) Subject: * xfaces.c (free_realized_faces_for_fontset): Remove; not used. X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~605^2^2~32 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=5967d05138d7405e4b60153f98c8beaf40c7d6da;p=emacs.git * xfaces.c (free_realized_faces_for_fontset): Remove; not used. --- diff --git a/src/ChangeLog b/src/ChangeLog index 1f8e0f6b8e3..fb266a71a0f 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -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. diff --git a/src/xfaces.c b/src/xfaces.c index d463175ed2c..b49675a7d8e 100644 --- a/src/xfaces.c +++ b/src/xfaces.c @@ -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. */