]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Remove dead code.
authorSimon Josefsson <simon@josefsson.org>
Wed, 9 Nov 2011 07:29:56 +0000 (08:29 +0100)
committerSimon Josefsson <simon@josefsson.org>
Wed, 9 Nov 2011 07:29:56 +0000 (08:29 +0100)
lib/debug.c
lib/debug.h

index 27dda9a6451fcd0a275911c59086db18cc306c6c..6aa2a09a4df64b251ce9b9bd00788f973dd96688 100644 (file)
@@ -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
  *
 #include <stdio.h>
 #include <stdlib.h>
 #include "debug.h"
-#include <gnutls_mpi.h>
-
-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";
-
     }
 }
index d0ad69370e96e06d84563746ce3027eb9896706c..4d3d2b03b7d12150a533a289fa9830d9aa49c078 100644 (file)
@@ -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);