From: Simon Josefsson Date: Wed, 9 Nov 2011 07:29:56 +0000 (+0100) Subject: Remove dead code. X-Git-Tag: gnutls_3_0_8~55 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e5d8a79fcc429902e8fb9b7cec91d66b965df5bb;p=thirdparty%2Fgnutls.git Remove dead code. --- diff --git a/lib/debug.c b/lib/debug.c index 27dda9a645..6aa2a09a4d 100644 --- a/lib/debug.c +++ b/lib/debug.c @@ -1,6 +1,5 @@ /* - * Copyright (C) 2001, 2002, 2003, 2004, 2005, 2007, 2008, 2009, 2010 - * Free Software Foundation, Inc. + * Copyright (C) 2001-2011 Free Software Foundation, Inc. * * Author: Nikos Mavrogiannopoulos * @@ -26,22 +25,6 @@ #include #include #include "debug.h" -#include - -void -_gnutls_dump_mpi (const char *prefix, bigint_t a) -{ - char buf[400]; - char buf_hex[2 * sizeof (buf)]; - size_t n = sizeof buf; - - if (_gnutls_mpi_print (a, buf, &n)) - strcpy (buf, "[can't print value]"); /* Flawfinder: ignore */ - _gnutls_debug_log ("MPI: length: %d\n\t%s%s\n", (int) n, prefix, - _gnutls_bin2hex (buf, n, buf_hex, sizeof (buf_hex), - NULL)); -} - const char * _gnutls_packet2str (content_type_t packet) @@ -64,7 +47,6 @@ _gnutls_packet2str (content_type_t packet) const char * _gnutls_handshake2str (gnutls_handshake_description_t handshake) { - switch (handshake) { case GNUTLS_HANDSHAKE_HELLO_REQUEST: @@ -114,6 +96,5 @@ _gnutls_handshake2str (gnutls_handshake_description_t handshake) break; default: return "Unknown Handshake packet"; - } } diff --git a/lib/debug.h b/lib/debug.h index d0ad69370e..4d3d2b03b7 100644 --- a/lib/debug.h +++ b/lib/debug.h @@ -22,4 +22,3 @@ const char *_gnutls_packet2str (content_type_t packet); const char *_gnutls_handshake2str (gnutls_handshake_description_t handshake); -void _gnutls_dump_mpi (const char *prefix, bigint_t a);