ext/czmq/src/zlist.c in rbczmq-1.7.1 vs ext/czmq/src/zlist.c in rbczmq-1.7.2
- old
+ new
@@ -27,10 +27,12 @@
@header
Provides a generic container implementing a fast singly-linked list. You
can use this to construct multi-dimensional lists, and other structures
together with other generic containers like zhash.
@discuss
+ To iterate through a list, use zlist_first to get the first item, then
+ loop while not null, and do zlist_next at the end of each iteration.
@end
*/
#include "../include/czmq.h"
@@ -288,17 +290,9 @@
break;
}
}
}
return copy;
-}
-
-// Deprecated interface
-
-zlist_t *
-zlist_copy (zlist_t *self)
-{
- return zlist_dup (self);
}
// --------------------------------------------------------------------------
// Return the number of items in the list