[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/master] Remove now-unused helper functions



commit 13ee80346927c155b2cecc7859e14865c05bb5f8
Author: Robert Ransom <rransom.8774@xxxxxxxxx>
Date:   Thu Mar 3 14:59:21 2011 -0800

    Remove now-unused helper functions
    
    These functions were needed only by code removed in the preceding commit.
    
    Reported by mobmix.
---
 src/common/tortls.c |   18 ------------------
 1 files changed, 0 insertions(+), 18 deletions(-)

diff --git a/src/common/tortls.c b/src/common/tortls.c
index 20a0e77..61cc4ba 100644
--- a/src/common/tortls.c
+++ b/src/common/tortls.c
@@ -151,24 +151,6 @@ static SSL_CIPHER *CLIENT_CIPHER_DUMMIES = NULL;
 static STACK_OF(SSL_CIPHER) *CLIENT_CIPHER_STACK = NULL;
 #endif
 
-/** Helper: compare tor_tls_t objects by its SSL. */
-static INLINE int
-tor_tls_entries_eq(const tor_tls_t *a, const tor_tls_t *b)
-{
-  return a->ssl == b->ssl;
-}
-
-/** Helper: return a hash value for a tor_tls_t by its SSL. */
-static INLINE unsigned int
-tor_tls_entry_hash(const tor_tls_t *a)
-{
-#if SIZEOF_INT == SIZEOF_VOID_P
-  return ((unsigned int)(uintptr_t)a->ssl);
-#else
-  return (unsigned int) ((((uint64_t)a->ssl)>>2) & UINT_MAX);
-#endif
-}
-
 /** Helper: given a SSL* pointer, return the tor_tls_t object using that
  * pointer. */
 static INLINE tor_tls_t *



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits