]> granicus.if.org Git - graphviz/commitdiff
remove unused pathinclude function
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 6 Jun 2020 00:08:50 +0000 (17:08 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 20 Jun 2020 02:57:27 +0000 (19:57 -0700)
This also removes a compiler warning.

lib/ast/pathfind.c

index dbc0b784b522a7b6a923885a5f737453bed2b48a..67af018ee1acd3f61014fdd7bcd878a1f336880c 100644 (file)
@@ -40,26 +40,6 @@ static struct {                      /* directory list state           */
     Dir_t *tail;               /* directory list tail          */
 } state;
 
-/*
- * append dir to pathfind() include list
- */
-
-int pathinclude(const char *dir)
-{
-    register Dir_t *dp;
-
-    if (dir && *dir && !streq(dir, ".")) {
-       if (!(dp = oldof(0, Dir_t, 1, strlen(dir))))
-           return -1;
-       strcpy(dp->dir, dir);
-       if (state.tail)
-           state.tail = state.tail->next = dp;
-       else
-           state.head = state.tail = dp;
-    }
-    return 0;
-}
-
 /*
  * return path to name using pathinclude() list
  * path placed in <buf,size>