From: Matthew Fernandez Date: Sat, 5 Jun 2021 23:54:29 +0000 (-0700) Subject: remove unused glCompGetObjectType X-Git-Tag: 2.47.3~7^2~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6a9eb1b84681b297cd56df642e20e230f1568ca8;p=graphviz remove unused glCompGetObjectType --- diff --git a/lib/glcomp/glcompset.c b/lib/glcomp/glcompset.c index 5ed3a3ab3..f1510cd3f 100644 --- a/lib/glcomp/glcompset.c +++ b/lib/glcomp/glcompset.c @@ -19,31 +19,6 @@ static GLfloat startX, startY; - - -void glCompGetObjectType(glCompObj * p) -{ - switch (p->objType) { - case glPanelObj: - printf("Panel\n"); - break; - case glButtonObj: - printf("Button\n"); - break; - case glImageObj: - printf("Image\n"); - break; - case glLabelObj: - printf("Label\n"); - break; - default: - printf("undefined object\n"); - break; - - } - -} - static int glCompPointInObject(glCompObj * p, float x, float y) { return ((x > p->common.refPos.x) diff --git a/lib/glcomp/glcompset.h b/lib/glcomp/glcompset.h index 4473ccec7..6159e7647 100644 --- a/lib/glcomp/glcompset.h +++ b/lib/glcomp/glcompset.h @@ -33,7 +33,6 @@ extern "C" { extern void glCompSetAddObj(glCompSet * s, glCompObj * obj); glCompObj *glCompGetObjByMouse(glCompSet * s, glCompMouse * m, int onlyClickable); - extern void glCompGetObjectType(glCompObj * p); #ifdef __cplusplus }