aboutsummaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2008-02-19 23:05:56 +0000
committerNick Mathewson <nickm@torproject.org>2008-02-19 23:05:56 +0000
commitdbcf29d301a1939028e101c3be30ba660ce567cc (patch)
tree21bd6c46a7e6536e4011b3a3bfc71208a1e76cf3 /src/or
parent9479dd376889c9d2cfb25bae8bd8b0a570118b3f (diff)
downloadtor-dbcf29d301a1939028e101c3be30ba660ce567cc.tar
tor-dbcf29d301a1939028e101c3be30ba660ce567cc.tar.gz
r18228@catbus: nickm | 2008-02-19 18:05:53 -0500
Chris Palmer notes that almost nobody is using smartlist_set_capacity(). Chris Palmer is right. Remove this basically pointless function. svn:r13596
Diffstat (limited to 'src/or')
-rw-r--r--src/or/rendservice.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/or/rendservice.c b/src/or/rendservice.c
index 28c1e912f..063d5ea87 100644
--- a/src/or/rendservice.c
+++ b/src/or/rendservice.c
@@ -158,7 +158,6 @@ rend_add_service(rend_service_t *service)
log_warn(LD_CONFIG, "Hidden service with no ports configured; ignoring.");
rend_service_free(service);
} else {
- smartlist_set_capacity(service->ports, -1);
smartlist_add(rend_service_list, service);
log_debug(LD_REND,"Configuring service with directory \"%s\"",
service->directory);