# HG changeset patch # User Jason Rumney # Date 1240639906 0 # Node ID ab4ac86c9209adecb23483f43a4418e1c8c3988e # Parent 167aaf60df7e17fd610395a7d0e271e9a57a79ba (clear_cached_metrics): Remove, unused since 2008-08-02. diff -r 167aaf60df7e -r ab4ac86c9209 src/ChangeLog --- a/src/ChangeLog Sat Apr 25 01:40:35 2009 +0000 +++ b/src/ChangeLog Sat Apr 25 06:11:46 2009 +0000 @@ -1,3 +1,7 @@ +2009-04-25 Jason Rumney + + * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02. + 2009-04-25 YAMAMOTO Mitsuharu * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]: diff -r 167aaf60df7e -r ab4ac86c9209 src/w32font.c --- a/src/w32font.c Sat Apr 25 01:40:35 2009 +0000 +++ b/src/w32font.c Sat Apr 25 06:11:46 2009 +0000 @@ -114,7 +114,6 @@ static int w32font_full_name P_ ((LOGFONT *, Lisp_Object, int, char *, int)); static void compute_metrics P_ ((HDC, struct w32font_info *, unsigned int, struct w32_metric_cache *)); -static void clear_cached_metrics P_ ((struct w32font_info *)); static Lisp_Object w32_registry P_ ((LONG, DWORD)); @@ -2390,19 +2389,6 @@ metrics->status = W32METRIC_FAIL; } -static void -clear_cached_metrics (w32_font) - struct w32font_info *w32_font; -{ - int i; - for (i = 0; i < w32_font->n_cache_blocks; i++) - { - if (w32_font->cached_metrics[i]) - bzero (w32_font->cached_metrics[i], - CACHE_BLOCKSIZE * sizeof (struct font_metrics)); - } -} - DEFUN ("x-select-font", Fx_select_font, Sx_select_font, 0, 2, 0, doc: /* Read a font name using a W32 font selection dialog. Return fontconfig style font string corresponding to the selection.