From e295990261c3ba92970967e67950019e1fbfc21c Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Fri, 5 Jun 2020 17:08:50 -0700 Subject: [PATCH] remove unused pathinclude function This also removes a compiler warning. --- lib/ast/pathfind.c | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/lib/ast/pathfind.c b/lib/ast/pathfind.c index dbc0b784b..67af018ee 100644 --- a/lib/ast/pathfind.c +++ b/lib/ast/pathfind.c @@ -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 -- 2.40.0