]> granicus.if.org Git - graphviz/commitdiff
remove unused glCompGetObjectType
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 5 Jun 2021 23:54:29 +0000 (16:54 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 9 Jun 2021 03:13:25 +0000 (20:13 -0700)
lib/glcomp/glcompset.c
lib/glcomp/glcompset.h

index 5ed3a3ab3604312c4bf241a68cb1ef0d436fff56..f1510cd3f6c8dd59056688ec0c18dfcec61d498b 100644 (file)
 
 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)
index 4473ccec7e337c51392b16a7ad64eb7eebe5a576..6159e7647c8a5dde9ec7018d9c64e1d4eec4fafe 100644 (file)
@@ -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
 }