changeset 90876:ea615c783ad5

* xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]: Remove redundant loop and allocation.
author Jason Rumney <jasonr@gnu.org>
date Thu, 31 May 2007 01:31:39 +0000
parents 525a2082dcb6
children 91d84dc66d41
files src/xterm.c
diffstat 1 files changed, 0 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/xterm.c	Thu May 31 01:24:57 2007 +0000
+++ b/src/xterm.c	Thu May 31 01:31:39 2007 +0000
@@ -1356,14 +1356,10 @@
 #ifdef USE_FONT_BACKEND
   else if (enable_font_backend)
     {
-      unsigned *code = alloca (sizeof (unsigned) * s->nchars);
       int boff = s->font_info->baseline_offset;
       struct font *font = (struct font *) s->font_info;
       int y;
 
-      for (i = 0; i < s->nchars; i++)
-	code[i] = (s->char2b[i].byte1 << 8) | s->char2b[i].byte2;
-
       if (s->font_info->vertical_centering)
 	boff = VCENTER_BASELINE_OFFSET (s->font, s->f) - boff;