diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2012-12-07 07:15:32 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2012-12-07 07:15:32 +0000 |
commit | 61aeba66d2d7ccc463bccd093601cb23c7ade20b (patch) | |
tree | 807648071047bb30a05570f79b89286b758e5094 /usr.bin | |
parent | e51c99ea8828e727f442cbeddcaf73476ad75f2b (diff) |
gc dead code
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/make/dir.c | 33 | ||||
-rw-r--r-- | usr.bin/make/dir.h | 10 |
2 files changed, 2 insertions, 41 deletions
diff --git a/usr.bin/make/dir.c b/usr.bin/make/dir.c index 0fb0cfeec5e..3f0c5c45bf2 100644 --- a/usr.bin/make/dir.c +++ b/usr.bin/make/dir.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dir.c,v 1.60 2012/10/02 10:29:30 espie Exp $ */ +/* $OpenBSD: dir.c,v 1.61 2012/12/07 07:15:31 espie Exp $ */ /* $NetBSD: dir.c,v 1.14 1997/03/29 16:51:26 christos Exp $ */ /* @@ -646,37 +646,6 @@ Dir_CopyDir(void *p) return p; } -/*- - *----------------------------------------------------------------------- - * Dir_MakeFlags -- - * Make a string by taking all the directories in the given search - * path and preceding them by the given flag. Used by the suffix - * module to create variables for compilers based on suffix search - * paths. - * - * Results: - * The string mentioned above. Note that there is no space between - * the given flag and each directory. The empty string is returned if - * Things don't go well. - *----------------------------------------------------------------------- - */ -char * -Dir_MakeFlags(const char *flag, Lst path) -{ - LstNode ln; - BUFFER buf; - - Buf_Init(&buf, 0); - - for (ln = Lst_First(path); ln != NULL; ln = Lst_Adv(ln)) { - Buf_AddString(&buf, flag); - Buf_AddString(&buf, ((struct PathEntry *)Lst_Datum(ln))->name); - Buf_AddSpace(&buf); - } - - return Buf_Retrieve(&buf); -} - void Dir_Destroy(void *pp) { diff --git a/usr.bin/make/dir.h b/usr.bin/make/dir.h index c27622a39be..5f519cdb2ea 100644 --- a/usr.bin/make/dir.h +++ b/usr.bin/make/dir.h @@ -1,7 +1,7 @@ #ifndef DIR_H #define DIR_H -/* $OpenBSD: dir.h,v 1.27 2012/10/02 10:29:30 espie Exp $ */ +/* $OpenBSD: dir.h,v 1.28 2012/12/07 07:15:31 espie Exp $ */ /* $NetBSD: dir.h,v 1.4 1996/11/06 17:59:05 christos Exp $ */ /* @@ -124,14 +124,6 @@ extern TIMESTAMP Dir_MTime(GNode *); * Misc */ -/* string = Dir_MakeFlags(flag, path); - * Given a search path and a command flag, create a string with each - * of the directories in the path preceded by the command flag and all - * of them separated by spaces. - */ -extern char *Dir_MakeFlags(const char *, Lst); - - /* List of directories to search when looking for targets. */ extern Lst defaultPath; |