summaryrefslogtreecommitdiffstats
path: root/usr.bin/make/lst.c
diff options
context:
space:
mode:
authorharti <harti@FreeBSD.org>2005-03-22 12:40:24 +0000
committerharti <harti@FreeBSD.org>2005-03-22 12:40:24 +0000
commitd00a9bb878ce962b2c776f964d33da7de1d5794f (patch)
tree93703839b233ce8518ae1fed2a06c76f184e848f /usr.bin/make/lst.c
parent08bf05ebc055444257dc884ae58aae47bc7c4578 (diff)
downloadFreeBSD-src-d00a9bb878ce962b2c776f964d33da7de1d5794f.zip
FreeBSD-src-d00a9bb878ce962b2c776f964d33da7de1d5794f.tar.gz
Remove Lst_Find() and Lst_FindFrom() now that they aren't needed anymore.
Diffstat (limited to 'usr.bin/make/lst.c')
-rw-r--r--usr.bin/make/lst.c43
1 files changed, 0 insertions, 43 deletions
diff --git a/usr.bin/make/lst.c b/usr.bin/make/lst.c
index c3e932b..0ddc909 100644
--- a/usr.bin/make/lst.c
+++ b/usr.bin/make/lst.c
@@ -270,49 +270,6 @@ Lst_Duplicate(Lst *dst, Lst *src, DuplicateProc *copyProc)
/*-
*-----------------------------------------------------------------------
- * Lst_FindFrom --
- * Search for a node starting and ending with the given one on the
- * given list using the passed datum and comparison function to
- * determine when it has been found.
- *
- * Results:
- * The found node or NULL
- *
- * Side Effects:
- * None.
- *
- *-----------------------------------------------------------------------
- */
-LstNode *
-Lst_FindFrom(Lst *l, LstNode *ln, const void *d, CompareProc *cProc)
-{
- LstNode *tln;
- Boolean found = FALSE;
-
- if (!Lst_Valid(l) || Lst_IsEmpty(l) || !Lst_NodeValid(ln, l)) {
- return (NULL);
- }
-
- tln = ln;
-
- do {
- if ((*cProc)(tln->datum, d) == 0) {
- found = TRUE;
- break;
- } else {
- tln = tln->nextPtr;
- }
- } while (tln != ln && tln != NULL);
-
- if (found) {
- return (tln);
- } else {
- return (NULL);
- }
-}
-
-/*-
- *-----------------------------------------------------------------------
* Lst_Insert --
* Insert a new node with the given piece of data before the given
* node in the given list.
OpenPOWER on IntegriCloud