diff options
author | Roger Dingledine <arma@torproject.org> | 2003-12-14 00:11:48 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2003-12-14 00:11:48 +0000 |
commit | 444798dfb91067e1a3ced3a28b3731ac715db0c5 (patch) | |
tree | cebce67c32bbb4dd0914925b9621929b1b2d435a | |
parent | 867c38311ca7291ec95327a3f477d08b6f9963e5 (diff) | |
download | tor-444798dfb91067e1a3ced3a28b3731ac715db0c5.tar.gz tor-444798dfb91067e1a3ced3a28b3731ac715db0c5.zip |
remove obsolete code
svn:r914
-rw-r--r-- | src/common/util.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/common/util.c b/src/common/util.c index d4708006f0..0757474a3c 100644 --- a/src/common/util.c +++ b/src/common/util.c @@ -92,19 +92,6 @@ void smartlist_add(smartlist_t *sl, void *element) { 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++) |