From: Nikos Mavrogiannopoulos Date: Tue, 5 Apr 2011 22:08:30 +0000 (+0200) Subject: removed unneeded function. X-Git-Tag: gnutls_2_99_0~49 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=076fede74666ece2ee688aff355c30852b4e49b7;p=thirdparty%2Fgnutls.git removed unneeded function. --- diff --git a/lib/opencdk/misc.c b/lib/opencdk/misc.c index a2608addea..46632a4b03 100644 --- a/lib/opencdk/misc.c +++ b/lib/opencdk/misc.c @@ -105,32 +105,6 @@ cdk_strlist_add (cdk_strlist_t * list, const char *string) return sl; } - -/** - * cdk_strlist_next: - * @root: the opaque string list. - * @r_str: optional argument to store the string data. - * - * Return the next string list node from @root. The optional - * argument @r_str return the data of the current (!) node. - **/ -cdk_strlist_t -cdk_strlist_next (cdk_strlist_t root, const char **r_str) -{ - cdk_strlist_t node; - - if (!root) - return NULL; - - if (r_str) - *r_str = root->d; - for (node = root->next; node; node = node->next) - return node; - - return NULL; -} - - const char * _cdk_memistr (const char *buf, size_t buflen, const char *sub) { diff --git a/lib/opencdk/opencdk.h b/lib/opencdk/opencdk.h index 6516824a1e..d350f73538 100644 --- a/lib/opencdk/opencdk.h +++ b/lib/opencdk/opencdk.h @@ -1063,7 +1063,6 @@ extern "C" void cdk_strlist_free (cdk_strlist_t sl); cdk_strlist_t cdk_strlist_add (cdk_strlist_t * list, const char *string); - cdk_strlist_t cdk_strlist_next (cdk_strlist_t root, const char **r_str); const char *cdk_check_version (const char *req_version); /* UTF8 */ char *cdk_utf8_encode (const char *string);