[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] remove obsolete code



Update of /home/or/cvsroot/src/common
In directory moria.mit.edu:/home2/arma/work/onion/cvs/src/common

Modified Files:
	util.c 
Log Message:
remove obsolete code


Index: util.c
===================================================================
RCS file: /home/or/cvsroot/src/common/util.c,v
retrieving revision 1.46
retrieving revision 1.47
diff -u -d -r1.46 -r1.47
--- util.c	13 Dec 2003 23:32:03 -0000	1.46
+++ util.c	14 Dec 2003 00:11:48 -0000	1.47
@@ -92,19 +92,6 @@
     log_fn(LOG_WARN,"We've already got %d elements, discarding.",sl->max);
 }
 
-#if 0
-void smartlist_remove(smartlist_t *sl, void *element) {
-  int i;
-  if(element == NULL)
-    return;
-  for(i=0; i < sl->num_used; i++)
-    if(sl->list[i] == element) {
-      sl->list[i] = sl->list[--sl->num_used]; /* swap with the end */
-      i--; /* so we process the new i'th element */
-    }
-}
-#endif
-
 int smartlist_isin(smartlist_t *sl, void *element) {
   int i;
   for(i=0; i < sl->num_used; i++)