Module Name: othersrc Committed By: dholland Date: Sat Mar 23 22:03:11 UTC 2013
Modified Files: othersrc/usr.bin/dholland-make2: dir.c dir.h Log Message: G/C Dir_CopyDir(), which is no longer used. To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 othersrc/usr.bin/dholland-make2/dir.c cvs rdiff -u -r1.3 -r1.4 othersrc/usr.bin/dholland-make2/dir.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: othersrc/usr.bin/dholland-make2/dir.c diff -u othersrc/usr.bin/dholland-make2/dir.c:1.6 othersrc/usr.bin/dholland-make2/dir.c:1.7 --- othersrc/usr.bin/dholland-make2/dir.c:1.6 Sat Mar 23 19:29:30 2013 +++ othersrc/usr.bin/dholland-make2/dir.c Sat Mar 23 22:03:11 2013 @@ -1,4 +1,4 @@ -/* $NetBSD: dir.c,v 1.6 2013/03/23 19:29:30 dholland Exp $ */ +/* $NetBSD: dir.c,v 1.7 2013/03/23 22:03:11 dholland Exp $ */ /* * Copyright (c) 1988, 1989, 1990 The Regents of the University of California. @@ -137,7 +137,7 @@ #include "hash.h" #include "dir.h" -__RCSID("$NetBSD: dir.c,v 1.6 2013/03/23 19:29:30 dholland Exp $"); +__RCSID("$NetBSD: dir.c,v 1.7 2013/03/23 22:03:11 dholland Exp $"); /* * A search path consists of a list of Path structures. A Path structure @@ -1563,27 +1563,6 @@ Dir_AddDir(struct patharray *path, const /*- *----------------------------------------------------------------------- - * Dir_CopyDir -- - * Callback function for duplicating a search path via Lst_Duplicate. - * Ups the reference count for the directory. - * - * Results: - * Returns the Path it was given. - * - * Side Effects: - * The refCount of the path is incremented. - * - *----------------------------------------------------------------------- - */ -Path * -Dir_CopyDir(Path *p) -{ - p->refCount += 1; - 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 Index: othersrc/usr.bin/dholland-make2/dir.h diff -u othersrc/usr.bin/dholland-make2/dir.h:1.3 othersrc/usr.bin/dholland-make2/dir.h:1.4 --- othersrc/usr.bin/dholland-make2/dir.h:1.3 Tue Mar 5 03:32:08 2013 +++ othersrc/usr.bin/dholland-make2/dir.h Sat Mar 23 22:03:11 2013 @@ -1,4 +1,4 @@ -/* $NetBSD: dir.h,v 1.3 2013/03/05 03:32:08 dholland Exp $ */ +/* $NetBSD: dir.h,v 1.4 2013/03/23 22:03:11 dholland Exp $ */ /* * Copyright (c) 1988, 1989, 1990 The Regents of the University of California. @@ -112,6 +112,5 @@ void Dir_Concat(struct patharray *, cons void Dir_PrintDirectories(void); void Dir_PrintPath(const struct patharray *); void Dir_Destroy(Path *); -Path *Dir_CopyDir(Path *); #endif /* _DIR */