diff options
author | Simon Josefsson <simon@josefsson.org> | 2012-09-12 23:21:33 +0200 |
---|---|---|
committer | Simon Josefsson <simon@josefsson.org> | 2012-09-12 23:22:20 +0200 |
commit | 55f4c0daccdc4db3cd8c1e6dc90291bd265a6f54 (patch) | |
tree | 40815b63325f6620e51d993896a9006060160de1 | |
parent | 204ce1d9a909d46c9bad2f6462f952b2edf9cefe (diff) | |
download | libtasn1-55f4c0daccdc4db3cd8c1e6dc90291bd265a6f54.tar.gz libtasn1-55f4c0daccdc4db3cd8c1e6dc90291bd265a6f54.tar.bz2 libtasn1-55f4c0daccdc4db3cd8c1e6dc90291bd265a6f54.zip |
Drop long-time deprecated functions.
-rw-r--r-- | doc/reference/Makefile.am | 3 | ||||
-rw-r--r-- | lib/errors.c | 41 | ||||
-rw-r--r-- | lib/libtasn1.h | 31 |
3 files changed, 1 insertions, 74 deletions
diff --git a/doc/reference/Makefile.am b/doc/reference/Makefile.am index f1e0bce..c3a1def 100644 --- a/doc/reference/Makefile.am +++ b/doc/reference/Makefile.am @@ -29,8 +29,7 @@ SCANGOBJ_OPTIONS= # Extra options to supply to gtkdoc-scan. # e.g. SCAN_OPTIONS=--deprecated-guards="GTK_DISABLE_DEPRECATED" -SCAN_OPTIONS=--ignore-decorators=ASN1_API \ - --deprecated-guards=ASN1_DISABLE_DEPRECATED +SCAN_OPTIONS=--ignore-decorators=ASN1_API # Extra options to supply to gtkdoc-mkdb. # e.g. MKDB_OPTIONS=--xml-mode --output-format=xml diff --git a/lib/errors.c b/lib/errors.c index 76611d8..8b6e5e4 100644 --- a/lib/errors.c +++ b/lib/errors.c @@ -100,44 +100,3 @@ asn1_strerror (asn1_retCode error) return NULL; } - -#ifndef ASN1_DISABLE_DEPRECATED - -/* Compatibility mappings to preserve ABI. */ - -/** - * libtasn1_perror: - * @error: is an error returned by a libtasn1 function. - * - * Prints a string to stderr with a description of an error. This - * function is like perror(). The only difference is that it accepts - * an error returned by a libtasn1 function. - * - * Deprecated: Use asn1_perror() instead. - **/ -void -libtasn1_perror (asn1_retCode error) -{ - asn1_perror (error); -} - -/** - * libtasn1_strerror: - * @error: is an error returned by a libtasn1 function. - * - * Returns a string with a description of an error. This function is - * similar to strerror. The only difference is that it accepts an - * error (number) returned by a libtasn1 function. - * - * Returns: Pointer to static zero-terminated string describing error - * code. - * - * Deprecated: Use asn1_strerror() instead. - **/ -const char * -libtasn1_strerror (asn1_retCode error) -{ - return asn1_strerror (error); -} - -#endif diff --git a/lib/libtasn1.h b/lib/libtasn1.h index 3373828..e67fdfe 100644 --- a/lib/libtasn1.h +++ b/lib/libtasn1.h @@ -301,37 +301,6 @@ extern "C" asn1_copy_node (ASN1_TYPE dst, const char *dst_name, ASN1_TYPE src, const char *src_name); - /* Deprecated stuff. */ - -#ifndef ASN1_DISABLE_DEPRECATED - -#define LIBTASN1_VERSION ASN1_VERSION - -#ifndef MAX_NAME_SIZE -# define MAX_NAME_SIZE ASN1_MAX_NAME_SIZE -#endif - -#ifndef MAX_ERROR_DESCRIPTION_SIZE -# define MAX_ERROR_DESCRIPTION_SIZE ASN1_MAX_ERROR_DESCRIPTION_SIZE -#endif - -#ifndef __attribute__ - /* This feature is available in gcc versions 2.5 and later. */ -# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 5) -# define __attribute__(Spec) /* empty */ -# endif -#endif - - /* Use asn1_strerror instead. */ - extern ASN1_API const char *libtasn1_strerror (asn1_retCode error) - __attribute__ ((deprecated)); - - /* Use asn1_perror instead. */ - extern ASN1_API void - libtasn1_perror (asn1_retCode error) __attribute__ ((deprecated)); - -#endif - #ifdef __cplusplus } #endif |