aboutsummaryrefslogtreecommitdiff
path: root/src/common/container.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2005-11-30 06:27:59 +0000
committerNick Mathewson <nickm@torproject.org>2005-11-30 06:27:59 +0000
commit9cec3a13f510f09f328f824796676f24a99ccf35 (patch)
tree399bc151d8add56eefb4477e5cb384a848dda850 /src/common/container.c
parenta6eb8cd2a0a206c7cc975751044723e4bcc60b7b (diff)
downloadtor-9cec3a13f510f09f328f824796676f24a99ccf35.tar.gz
tor-9cec3a13f510f09f328f824796676f24a99ccf35.zip
remove some functions that are not used; #if0 out some files that are not likely to be used.
svn:r5471
Diffstat (limited to 'src/common/container.c')
-rw-r--r--src/common/container.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/common/container.c b/src/common/container.c
index 09951bae4d..6053f37ae1 100644
--- a/src/common/container.c
+++ b/src/common/container.c
@@ -77,17 +77,6 @@ smartlist_clear(smartlist_t *sl)
sl->num_used = 0;
}
-/** Set the list's new length to <b>len</b> (which must be \<= the list's
- * current size). Remove the last smartlist_len(sl)-len elements from the
- * list.
- */
-void
-smartlist_truncate(smartlist_t *sl, int len)
-{
- tor_assert(len <= sl->num_used);
- sl->num_used = len;
-}
-
/** Append element to the end of the list. */
void
smartlist_add(smartlist_t *sl, void *element)