diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-01-07 16:50:33 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-01-07 16:50:33 +0000 |
commit | becbafc9dba6c12c01fe1abdf5a1fb4d50e6aa15 (patch) | |
tree | 2dc0d7f979cc6a86715d842c2b884135a8e1b8f7 /src/common/container.c | |
parent | 491298a067ceaedecc6a35fb9ce72ecbf968a91d (diff) | |
download | tor-becbafc9dba6c12c01fe1abdf5a1fb4d50e6aa15.tar.gz tor-becbafc9dba6c12c01fe1abdf5a1fb4d50e6aa15.zip |
r17491@catbus: nickm | 2008-01-07 11:50:24 -0500
Remove some dead code.
svn:r13053
Diffstat (limited to 'src/common/container.c')
-rw-r--r-- | src/common/container.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/common/container.c b/src/common/container.c index eeebc15bf9..f1caec010b 100644 --- a/src/common/container.c +++ b/src/common/container.c @@ -499,16 +499,6 @@ void * smartlist_bsearch(smartlist_t *sl, const void *key, int (*compare)(const void *key, const void **member)) { -#if 0 - void ** r; - - if (!sl->num_used) - return NULL; - - r = bsearch(key, sl->list, sl->num_used, sizeof(void*), - (int (*)(const void *, const void *))compare); - return r ? *r : NULL; -#endif int found, idx; idx = smartlist_bsearch_idx(sl, key, compare, &found); return found ? smartlist_get(sl, idx) : NULL; |