Commit 3e5490f7 authored by Paul Eggert's avatar Paul Eggert
Browse files

* xterm.c (x_draw_image_relief): Remove unused locals.

Fixes: debbugs:10500
parent ba12ad69
2012-12-01 Paul Eggert <eggert@cs.ucla.edu>
* xterm.c (x_draw_image_relief): Remove unused locals (Bug#10500).
2012-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
 
* xterm.c (x_draw_relief_rect, x_draw_image_relief): Fix relief
......
......@@ -2258,7 +2258,6 @@ static void
x_draw_image_relief (struct glyph_string *s)
{
int x1, y1, thick, raised_p, top_p, bot_p, left_p, right_p;
int extra_x, extra_y;
XRectangle r;
int x = s->x;
int y = s->ybase - image_ascent (s->img, s->face, &s->slice);
......@@ -2289,20 +2288,6 @@ x_draw_image_relief (struct glyph_string *s)
raised_p = s->img->relief > 0;
}
extra_x = extra_y = 0;
if (s->face->id == TOOL_BAR_FACE_ID)
{
if (CONSP (Vtool_bar_button_margin)
&& INTEGERP (XCAR (Vtool_bar_button_margin))
&& INTEGERP (XCDR (Vtool_bar_button_margin)))
{
extra_x = XINT (XCAR (Vtool_bar_button_margin));
extra_y = XINT (XCDR (Vtool_bar_button_margin));
}
else if (INTEGERP (Vtool_bar_button_margin))
extra_x = extra_y = XINT (Vtool_bar_button_margin);
}
x1 = x + s->slice.width - 1;
y1 = y + s->slice.height - 1;
top_p = bot_p = left_p = right_p = 0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment