From f3697376ae6c5b161ec1fceaae3918d96b2d4fda Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Fri, 17 Dec 2021 21:31:29 -0800 Subject: [PATCH] remove unused 'glCompSelectionBox' --- lib/glcomp/glutils.c | 24 ------------------------ lib/glcomp/glutils.h | 1 - 2 files changed, 25 deletions(-) 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); -- 2.40.0