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/make/dir.c | |
parent | e51c99ea8828e727f442cbeddcaf73476ad75f2b (diff) |
gc dead code
Diffstat (limited to 'usr.bin/make/dir.c')
-rw-r--r-- | usr.bin/make/dir.c | 33 |
1 files changed, 1 insertions, 32 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) { |