From 40c0013123e83036e0a8594c1005682df8bdab0f Mon Sep 17 00:00:00 2001 From: Jason Rumney Date: Thu, 31 May 2007 01:31:39 +0000 Subject: [PATCH] * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]: Remove redundant loop and allocation. --- src/xterm.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/xterm.c b/src/xterm.c index 724bc2a596e..462de3f32b1 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -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; -- 2.39.5