diff options
author | rl1987 <rl1987@sdf.lonestar.org> | 2015-03-17 21:23:12 +0200 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2015-03-31 14:37:02 -0400 |
commit | 5e759127f8a8e176d40a213d31f340f7ec3d0b0d (patch) | |
tree | 3c9ed2c13ab12919cb526f0bb378574f52fe4b8d /src/test/test_address.c | |
parent | b5f84fde494833182a52a56d9f8584919915ec40 (diff) | |
download | tor-5e759127f8a8e176d40a213d31f340f7ec3d0b0d.tar.gz tor-5e759127f8a8e176d40a213d31f340f7ec3d0b0d.zip |
Remove unused function.
Diffstat (limited to 'src/test/test_address.c')
-rw-r--r-- | src/test/test_address.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/test/test_address.c b/src/test/test_address.c index 7a9471f48c..859c146a2b 100644 --- a/src/test/test_address.c +++ b/src/test/test_address.c @@ -452,24 +452,6 @@ test_address_get_if_addrs_ioctl(void *arg) #endif -/** Return 1 iff an address exactly equal to <b>tor_addr</b> is in - * <b>smartlist</b>. Otherwise, return 0. - */ -static int -smartlist_contain_tor_addr(smartlist_t *smartlist, tor_addr_t *tor_addr) -{ - int success = 0; - - SMARTLIST_FOREACH_BEGIN(smartlist, tor_addr_t *, a) { - if (tor_addr_compare(tor_addr,a,CMP_EXACT) == 0) { - success = 1; - break; - } - } SMARTLIST_FOREACH_END(a); - - return success; -} - #define FAKE_SOCKET_FD (42) tor_socket_t |