]> granicus.if.org Git - graphviz/commitdiff
remove unused colorType function
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 2 May 2021 02:17:40 +0000 (19:17 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 16 May 2021 16:40:28 +0000 (09:40 -0700)
lib/xdot/xdot.c

index 6ad771e1dcc1b749ae695cc37d9a92dc17b6eb43..9d3fc70ec8e6fc58b3dc7e3a9de014df54a76d1b 100644 (file)
@@ -1003,25 +1003,6 @@ int statXDot (xdot* x, xdot_stats* sp)
     return 0;
 }
 
-xdot_grad_type 
-colorType (char* cp)
-{
-    xdot_grad_type rv;
-
-    switch (*cp) {
-    case '[' :
-       rv = xd_linear;
-       break;
-    case '(' :
-       rv = xd_radial;
-       break;
-    default :
-       rv = xd_none;
-       break;
-    }
-    return rv;
-}
-
 #define CHK1(s) if(!s){free(stops);return NULL;}
 
 /* radGradient: