aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2011-04-02 23:01:50 -0700
committerPaul Eggert2011-04-02 23:01:50 -0700
commit78834453077412b2280d5418259ac99755950d49 (patch)
tree338b57dd8dcbea4ec4906e0c5bf14d8910bc49fd /src
parent8cd55cb48a097813ff13b8dc5e6570dd32fa1495 (diff)
downloademacs-78834453077412b2280d5418259ac99755950d49.tar.gz
emacs-78834453077412b2280d5418259ac99755950d49.zip
* font.c (font_find_for_lface, Ffont_get_glyphs): Remove unused vars.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog2
-rw-r--r--src/font.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 821e663a311..02cdc170f5c 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,7 @@
12011-04-03 Paul Eggert <eggert@cs.ucla.edu> 12011-04-03 Paul Eggert <eggert@cs.ucla.edu>
2 2
3 * font.c (font_find_for_lface, Ffont_get_glyphs): Remove unused vars.
4
3 * fns.c (substring_both): Remove var that is set but not used. 5 * fns.c (substring_both): Remove var that is set but not used.
4 (sxhash): Redo loop for clarity and to avoid wraparound warning. 6 (sxhash): Redo loop for clarity and to avoid wraparound warning.
5 7
diff --git a/src/font.c b/src/font.c
index 6b2e2f2712d..02262e1cb81 100644
--- a/src/font.c
+++ b/src/font.c
@@ -3071,7 +3071,7 @@ font_find_for_lface (FRAME_PTR f, Lisp_Object *attrs, Lisp_Object spec, int c)
3071{ 3071{
3072 Lisp_Object work; 3072 Lisp_Object work;
3073 Lisp_Object frame, entities, val; 3073 Lisp_Object frame, entities, val;
3074 Lisp_Object size, foundry[3], *family, registry[3], adstyle[3]; 3074 Lisp_Object foundry[3], *family, registry[3], adstyle[3];
3075 int pixel_size; 3075 int pixel_size;
3076 int i, j, k, l; 3076 int i, j, k, l;
3077 3077
@@ -3102,7 +3102,6 @@ font_find_for_lface (FRAME_PTR f, Lisp_Object *attrs, Lisp_Object spec, int c)
3102 work = Fcopy_font_spec (spec); 3102 work = Fcopy_font_spec (spec);
3103 ASET (work, FONT_TYPE_INDEX, AREF (spec, FONT_TYPE_INDEX)); 3103 ASET (work, FONT_TYPE_INDEX, AREF (spec, FONT_TYPE_INDEX));
3104 XSETFRAME (frame, f); 3104 XSETFRAME (frame, f);
3105 size = AREF (spec, FONT_SIZE_INDEX);
3106 pixel_size = font_pixel_size (f, spec); 3105 pixel_size = font_pixel_size (f, spec);
3107 if (pixel_size == 0 && INTEGERP (attrs[LFACE_HEIGHT_INDEX])) 3106 if (pixel_size == 0 && INTEGERP (attrs[LFACE_HEIGHT_INDEX]))
3108 { 3107 {
@@ -4723,10 +4722,9 @@ the corresponding element is nil. */)
4723 Lisp_Object g; 4722 Lisp_Object g;
4724 int c = XFASTINT (chars[i]); 4723 int c = XFASTINT (chars[i]);
4725 unsigned code; 4724 unsigned code;
4726 EMACS_INT cod;
4727 struct font_metrics metrics; 4725 struct font_metrics metrics;
4728 4726
4729 cod = code = font->driver->encode_char (font, c); 4727 code = font->driver->encode_char (font, c);
4730 if (code == FONT_INVALID_CODE) 4728 if (code == FONT_INVALID_CODE)
4731 continue; 4729 continue;
4732 g = Fmake_vector (make_number (LGLYPH_SIZE), Qnil); 4730 g = Fmake_vector (make_number (LGLYPH_SIZE), Qnil);