]> git.eshelyaron.com Git - emacs.git/commitdiff
* xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
authorJason Rumney <jasonr@gnu.org>
Thu, 31 May 2007 01:31:39 +0000 (01:31 +0000)
committerJason Rumney <jasonr@gnu.org>
Thu, 31 May 2007 01:31:39 +0000 (01:31 +0000)
Remove redundant loop and allocation.

src/xterm.c

index 724bc2a596e55ba46d4bbef0e34a34b55025cc90..462de3f32b1d757b5cccc1f67620eaa033eb9a5e 100644 (file)
@@ -1356,14 +1356,10 @@ x_draw_glyph_string_foreground (s)
 #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;