From: Matthew Fernandez Date: Sat, 5 Sep 2020 23:25:58 +0000 (-0700) Subject: remove unused variables in glCompRenderText X-Git-Tag: 2.46.0~20^2^2~86^2~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7aa31d3dd698c94e8aa056285ffaefbbd4a17008;p=graphviz remove unused variables in glCompRenderText --- diff --git a/lib/glcomp/glcompfont.c b/lib/glcomp/glcompfont.c index 1be8a1179..f21014b89 100644 --- a/lib/glcomp/glcompfont.c +++ b/lib/glcomp/glcompfont.c @@ -425,15 +425,12 @@ void glCompDrawText(glCompFont * f,GLfloat x,GLfloat y) void glCompRenderText(glCompFont * f, glCompObj * parentObj) { static glCompCommon ref; - GLfloat x, y, z, w, h; + GLfloat x, y; if (!f->tex) return; x = 0; y = 0; - w = f->tex->width; - h = f->tex->height; ref = parentObj->common; - z = ref.pos.z; switch (f->justify.HJustify) { case glFontHJustifyNone: @@ -459,7 +456,6 @@ void glCompRenderText(glCompFont * f, glCompObj * parentObj) y = ref.refPos.y + (ref.height - f->tex->height) / (GLfloat) 2.0; break; } - z=ref.refPos.z; glCompSetColor(&f->color); glCompDrawText(f,x,y);