From: Nikos Mavrogiannopoulos Date: Tue, 8 Feb 2011 17:11:52 +0000 (+0100) Subject: Removed unused debugging code. X-Git-Tag: gnutls_2_99_0~295 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=145db1e3a427a508afb0de08f3135a3f90dcf8eb;p=thirdparty%2Fgnutls.git Removed unused debugging code. --- diff --git a/lib/gnutls_algorithms.c b/lib/gnutls_algorithms.c index 639f9fa058..027bf5d99c 100644 --- a/lib/gnutls_algorithms.c +++ b/lib/gnutls_algorithms.c @@ -1720,39 +1720,11 @@ _gnutls_compare_algo (gnutls_session_t session, const void *i_A1, } } -#ifdef SORT_DEBUG -static void -_gnutls_bsort (gnutls_session_t session, void *_base, size_t nmemb, - size_t size, int (*compar) (gnutls_session_t, const void *, - const void *)) -{ - unsigned int i, j; - int full = nmemb * size; - char *base = _base; - char tmp[MAX_ELEM_SIZE]; - - for (i = 0; i < full; i += size) - { - for (j = 0; j < full; j += size) - { - if (compar (session, &base[i], &base[j]) < 0) - { - SWAP (&base[j], &base[i]); - } - } - } - -} -#endif - int _gnutls_supported_ciphersuites_sorted (gnutls_session_t session, cipher_suite_st ** ciphers) { -#ifdef SORT_DEBUG - unsigned int i; -#endif int count; count = _gnutls_supported_ciphersuites (session, ciphers); @@ -1761,23 +1733,10 @@ _gnutls_supported_ciphersuites_sorted (gnutls_session_t session, gnutls_assert (); return count; } -#ifdef SORT_DEBUG - _gnutls_debug_log ("Unsorted: \n"); - for (i = 0; i < count; i++) - _gnutls_debug_log ("\t%d: %s\n", i, - _gnutls_cipher_suite_get_name ((*ciphers)[i])); -#endif _gnutls_qsort (session, *ciphers, count, sizeof (cipher_suite_st), _gnutls_compare_algo); -#ifdef SORT_DEBUG - _gnutls_debug_log ("Sorted: \n"); - for (i = 0; i < count; i++) - _gnutls_debug_log ("\t%d: %s\n", i, - _gnutls_cipher_suite_get_name ((*ciphers)[i])); -#endif - return count; }