diff options
author | Simon Josefsson <simon@josefsson.org> | 2009-03-04 16:42:34 +0100 |
---|---|---|
committer | Simon Josefsson <simon@josefsson.org> | 2009-03-04 16:42:34 +0100 |
commit | ef877cb6019a7749bda7cd50d40f206aebdea33c (patch) | |
tree | 73027eee06cdf5592e9370c4997242fdd673b5b9 | |
parent | e9885c4a52623f5be7c4948559b1f038c841afe6 (diff) | |
download | libtasn1-ef877cb6019a7749bda7cd50d40f206aebdea33c.tar.gz libtasn1-ef877cb6019a7749bda7cd50d40f206aebdea33c.tar.bz2 libtasn1-ef877cb6019a7749bda7cd50d40f206aebdea33c.zip |
Simplify unused debug code.
-rw-r--r-- | lib/ASN1.y | 7 | ||||
-rw-r--r-- | lib/Makefile.am | 1 | ||||
-rw-r--r-- | lib/coding.c | 1 | ||||
-rw-r--r-- | lib/decoding.c | 1 | ||||
-rw-r--r-- | lib/element.c | 11 | ||||
-rw-r--r-- | lib/errors.c | 1 | ||||
-rw-r--r-- | lib/errors.h | 30 | ||||
-rw-r--r-- | lib/parser_aux.c | 1 | ||||
-rw-r--r-- | lib/structure.c | 1 |
9 files changed, 7 insertions, 47 deletions
@@ -31,7 +31,6 @@ %{ #include <int.h> -#include <errors.h> #include <parser_aux.h> #include <structure.h> @@ -791,9 +790,9 @@ static int _asn1_yyerror (const char *s) { /* Sends the error description to the std_out */ -#ifdef LIBTASN1_DEBUG_PARSER - _libtasn1_log("_asn1_yyerror:%s:%d: %s (Last Token:'%s')\n",fileName, - lineNumber,s,lastToken); +#if 0 + printf("_asn1_yyerror:%s:%ld: %s (Last Token:'%s')\n",fileName, + lineNumber,s,lastToken); #endif if(result_parse!=ASN1_NAME_TOO_LONG) diff --git a/lib/Makefile.am b/lib/Makefile.am index fb08ef4..10e4ce3 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -35,7 +35,6 @@ libtasn1_la_SOURCES = \ element.c \ element.h \ errors.c \ - errors.h \ gstr.c \ gstr.h \ int.h \ diff --git a/lib/coding.c b/lib/coding.c index f53ca04..025fd36 100644 --- a/lib/coding.c +++ b/lib/coding.c @@ -28,7 +28,6 @@ /*****************************************************/ #include <int.h> -#include <errors.h> #include "parser_aux.h" #include <gstr.h> #include "element.h" diff --git a/lib/decoding.c b/lib/decoding.c index 58e4da9..532b2ed 100644 --- a/lib/decoding.c +++ b/lib/decoding.c @@ -27,7 +27,6 @@ /*****************************************************/ #include <int.h> -#include <errors.h> #include "parser_aux.h" #include <gstr.h> #include "structure.h" diff --git a/lib/element.c b/lib/element.c index c3786cf..1a5ad33 100644 --- a/lib/element.c +++ b/lib/element.c @@ -28,7 +28,6 @@ #include <int.h> -#include <errors.h> #include "parser_aux.h" #include <gstr.h> #include "structure.h" @@ -117,15 +116,13 @@ _asn1_convert_integer (const char *value, unsigned char *value_out, for (k2 = k; k2 < SIZEOF_UNSIGNED_LONG_INT; k2++) value_out[k2 - k] = val[k2]; - -#ifdef LIBTASN1_DEBUG_INTEGER - _libtasn1_log ("_asn1_convert_integer: valueIn=%s, lenOut=%d", value, *len); +#if 0 + printf ("_asn1_convert_integer: valueIn=%s, lenOut=%d", value, *len); for (k = 0; k < SIZEOF_UNSIGNED_LONG_INT; k++) - _libtasn1_log (", vOut[%d]=%d", k, value_out[k]); - _libtasn1_log ("\n"); + printf (", vOut[%d]=%d", k, value_out[k]); + printf ("\n"); #endif - return ASN1_SUCCESS; } diff --git a/lib/errors.c b/lib/errors.c index 786f220..e893076 100644 --- a/lib/errors.c +++ b/lib/errors.c @@ -21,7 +21,6 @@ */ #include <int.h> -#include "errors.h" #ifdef STDC_HEADERS # include <stdarg.h> #endif diff --git a/lib/errors.h b/lib/errors.h deleted file mode 100644 index ceb2e7b..0000000 --- a/lib/errors.h +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Copyright (C) 2004, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. - * Copyright (C) 2002 Fabio Fiorina - * - * This file is part of LIBTASN1. - * - * The LIBTASN1 library is free software; you can redistribute it - * and/or modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA - */ - -#ifndef ERRORS_H -#define ERRORS_H - -#include "int.h" - -void _libtasn1_log( const char *fmt, ...); - -#endif /* ERRORS_H */ diff --git a/lib/parser_aux.c b/lib/parser_aux.c index 61bd01b..23bccd7 100644 --- a/lib/parser_aux.c +++ b/lib/parser_aux.c @@ -21,7 +21,6 @@ */ #include <int.h> -#include <errors.h> #include "parser_aux.h" #include "gstr.h" #include "structure.h" diff --git a/lib/structure.c b/lib/structure.c index 8b1bb62..47b6875 100644 --- a/lib/structure.c +++ b/lib/structure.c @@ -29,7 +29,6 @@ #include <int.h> -#include <errors.h> #include <structure.h> #include "parser_aux.h" #include <gstr.h> |