Module Name:    othersrc
Committed By:   dholland
Date:           Sat Mar 23 17:36:37 UTC 2013

Modified Files:
        othersrc/usr.bin/dholland-make2: suff.c

Log Message:
Remove unused back-pointers.


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 othersrc/usr.bin/dholland-make2/suff.c

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/suff.c
diff -u othersrc/usr.bin/dholland-make2/suff.c:1.11 othersrc/usr.bin/dholland-make2/suff.c:1.12
--- othersrc/usr.bin/dholland-make2/suff.c:1.11	Sat Mar 23 17:33:58 2013
+++ othersrc/usr.bin/dholland-make2/suff.c	Sat Mar 23 17:36:37 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: suff.c,v 1.11 2013/03/23 17:33:58 dholland Exp $	*/
+/*	$NetBSD: suff.c,v 1.12 2013/03/23 17:36:37 dholland Exp $	*/
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -131,7 +131,7 @@
 #include	  "hash.h"
 #include	  "dir.h"
 
-MAKE_RCSID("$NetBSD: suff.c,v 1.11 2013/03/23 17:33:58 dholland Exp $");
+MAKE_RCSID("$NetBSD: suff.c,v 1.12 2013/03/23 17:36:37 dholland Exp $");
 
 /*
  * Structure describing an individual suffix.
@@ -154,7 +154,6 @@ typedef struct Suff {
     int		 refCount;	/* Reference count of list membership */
     struct sufflist parents;	/* Suffixes we have a transformation to */
     struct sufflist children;	/* Suffixes we have a transformation from */
-    Lst		 ref;		/* List of lists this suffix is referenced */
 } Suff;
 
 /*
@@ -385,7 +384,6 @@ SuffFree(void *sp)
 	    s->refCount);
 #endif
 
-    Lst_Destroy(s->ref, NULL);
     sufflist_setsize(&s->children, 0);
     sufflist_cleanup(&s->children);
     sufflist_setsize(&s->parents, 0);
@@ -462,7 +460,6 @@ SuffInsert(struct sufflist *l, Suff *s)
 	}
 	sufflist_add(l, s, NULL);
 	s->refCount++;
-	(void)Lst_AtEnd(s->ref, l);
     } else if (s2->sNum != s->sNum) {
 	if (DEBUG(SUFF)) {
 	    fprintf(debug_file, "before %s(%d)\n", s2->name, s2->sNum);
@@ -470,7 +467,6 @@ SuffInsert(struct sufflist *l, Suff *s)
 	sufflist_insert(l, pos);
 	sufflist_set(l, pos, s);
 	s->refCount++;
-	(void)Lst_AtEnd(s->ref, l);
     } else if (DEBUG(SUFF)) {
 	fprintf(debug_file, "already there\n");
     }
@@ -985,7 +981,6 @@ Suff_AddSuffix(char *str, GNode **gn)
 	patharray_init(&s->searchPath);
 	sufflist_init(&s->children);
 	sufflist_init(&s->parents);
-	s->ref = 	Lst_Init(FALSE);
 	s->sNum =   	sNum++;
 	s->flags =  	0;
 	s->refCount =	1;
@@ -2605,11 +2600,9 @@ Suff_Init(void)
     Dir_Concat(&suffNull->searchPath, &dirSearchPath);
     sufflist_init(&suffNull->children);
     sufflist_init(&suffNull->parents);
-    suffNull->ref =	    Lst_Init(FALSE);
     suffNull->sNum =   	    sNum++;
     suffNull->flags =  	    SUFF_NULL;
     suffNull->refCount =    1;
-
 }
 
 

Reply via email to