]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
removed unneeded function.
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Tue, 5 Apr 2011 22:08:30 +0000 (00:08 +0200)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Tue, 5 Apr 2011 22:08:30 +0000 (00:08 +0200)
lib/opencdk/misc.c
lib/opencdk/opencdk.h

index a2608addeaf89e5abbef150197a90edf271247ea..46632a4b038ac6bf7fc570fb22c40dbe5a990b4e 100644 (file)
@@ -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)
 {
index 6516824a1e039e9eeeceeee730c1ce844a73edfe..d350f735383a9ca3eff3b824306a72413f509b5c 100644 (file)
@@ -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);