From: Matthew Fernandez Date: Sat, 18 Dec 2021 05:31:29 +0000 (-0800) Subject: remove unused 'glCompSelectionBox' X-Git-Tag: 3.0.0~123^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f3697376ae6c5b161ec1fceaae3918d96b2d4fda;p=graphviz remove unused 'glCompSelectionBox' --- diff --git a/lib/glcomp/glutils.c b/lib/glcomp/glutils.c index 6ee4704bf..a5cb52453 100644 --- a/lib/glcomp/glutils.c +++ b/lib/glcomp/glutils.c @@ -203,30 +203,6 @@ void replacestr(char *source, char **target) *target = strdup(source); } -void glCompSelectionBox(glCompSet * s) -{ - static GLfloat x, y, w, h; - - x = s->mouse.pos.x; - y = s->mouse.pos.y; - w = s->mouse.dragX; - h = s->mouse.dragY; - printf("%f %f %f %f \n", x, y, w, h); - glColor4f(1.0f, 1.0f, 1.0f, 1.0f); - - glBegin(GL_POLYGON); - glVertex2f(0, 0); - glVertex2f(250, 0); - glVertex2f(250, 250); - glVertex2f(0, 250); - glVertex2f(0, 0); - - glEnd(); - - - glDisable(GL_LINE_STIPPLE); -} - void glCompCalcWidget(glCompCommon * parent, glCompCommon * child, glCompCommon * ref) { diff --git a/lib/glcomp/glutils.h b/lib/glcomp/glutils.h index 7d77910dc..e75a55634 100644 --- a/lib/glcomp/glutils.h +++ b/lib/glcomp/glutils.h @@ -45,7 +45,6 @@ extern "C" { glCompColor * target); extern void glCompSetColor(glCompColor * c); - void glCompSelectionBox(glCompSet * s); extern GLfloat distBetweenPts(glCompPoint A,glCompPoint B,float R); extern int is_point_in_rectangle(float X, float Y, float RX, float RY, float RW,float RH);