From 20dcc9159c8008dbceb3d3d00e2c8940aa4d2a12 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Fri, 9 Apr 2021 17:02:44 -0700 Subject: [PATCH] remove now no longer used pathbin.c --- lib/ast/CMakeLists.txt | 1 - lib/ast/Makefile.am | 2 +- lib/ast/ast.h | 1 - lib/ast/ast.vcxproj | 1 - lib/ast/ast.vcxproj.filters | 3 --- lib/ast/pathbin.c | 28 ---------------------------- 6 files changed, 1 insertion(+), 35 deletions(-) delete mode 100644 lib/ast/pathbin.c diff --git a/lib/ast/CMakeLists.txt b/lib/ast/CMakeLists.txt index a1849a39e..bd877d165 100644 --- a/lib/ast/CMakeLists.txt +++ b/lib/ast/CMakeLists.txt @@ -13,7 +13,6 @@ add_library(ast STATIC fmtbuf.c fmtesc.c pathaccess.c - pathbin.c pathcanon.c pathcat.c pathexists.c diff --git a/lib/ast/Makefile.am b/lib/ast/Makefile.am index ce61ffc68..1d4b23205 100644 --- a/lib/ast/Makefile.am +++ b/lib/ast/Makefile.am @@ -6,7 +6,7 @@ noinst_HEADERS = ast.h error.h hashkey.h noinst_LTLIBRARIES = libast_C.la libast_C_la_SOURCES = pathpath.c sfstr.h chresc.c chrtoi.c error.c \ - fmtbuf.c fmtesc.c pathaccess.c pathbin.c pathcanon.c pathcat.c \ + fmtbuf.c fmtesc.c pathaccess.c pathcanon.c pathcat.c \ pathexists.c pathfind.c pathgetlink.c \ strcopy.c stresc.c strmatch.c diff --git a/lib/ast/ast.h b/lib/ast/ast.h index 3dc87c6f3..78ccdc768 100644 --- a/lib/ast/ast.h +++ b/lib/ast/ast.h @@ -71,7 +71,6 @@ extern "C" { size_t); extern char *pathaccess(char *, const char *, const char *, const char *, int); - extern char *pathbin(void); extern char *pathcat(char *, const char *, int, const char *, const char *); extern int pathgetlink(const char *, char *, int); diff --git a/lib/ast/ast.vcxproj b/lib/ast/ast.vcxproj index bb994d1e6..cbb8b59fe 100644 --- a/lib/ast/ast.vcxproj +++ b/lib/ast/ast.vcxproj @@ -89,7 +89,6 @@ - diff --git a/lib/ast/ast.vcxproj.filters b/lib/ast/ast.vcxproj.filters index 3e4f85ebe..e79907f86 100644 --- a/lib/ast/ast.vcxproj.filters +++ b/lib/ast/ast.vcxproj.filters @@ -50,9 +50,6 @@ Source Files - - Source Files - Source Files diff --git a/lib/ast/pathbin.c b/lib/ast/pathbin.c deleted file mode 100644 index 84803d5bf..000000000 --- a/lib/ast/pathbin.c +++ /dev/null @@ -1,28 +0,0 @@ -/************************************************************************* - * Copyright (c) 2011 AT&T Intellectual Property - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: Details at https://graphviz.org - *************************************************************************/ - -/* - * Glenn Fowler - * AT&T Bell Laboratories - * - * return current PATH - */ - -#include - -char *pathbin(void) -{ - char *bin; - - if (!(bin = getenv("PATH"))) { - bin = ""; - } - return bin; -} -- 2.40.0