Remove rz_list_of_sdblist API (#4442)

This commit is contained in:
pelijah 2024-04-18 16:57:30 +03:00 committed by GitHub
parent 77f8f8052d
commit c9f11efb03
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 0 additions and 16 deletions

View file

@ -2,7 +2,6 @@
#define RZ_LIST_H
#include <rz_types.h>
#include <ls.h>
#ifdef __cplusplus
extern "C" {
@ -100,7 +99,6 @@ RZ_API RZ_OWN void *rz_list_pop_head(RZ_NONNULL RzList *list);
RZ_API void rz_list_reverse(RZ_NONNULL RzList *list);
RZ_API RZ_OWN RzList *rz_list_clone(RZ_NONNULL const RzList *list);
RZ_API RZ_OWN char *rz_list_to_str(RZ_NONNULL RzList *list, char ch);
RZ_API RZ_OWN RzList *rz_list_of_sdblist(SdbList *sl);
/* hashlike api */
RZ_API RZ_BORROW RzListIter *rz_list_contains(RZ_NONNULL const RzList *list, RZ_NONNULL const void *ptr);

View file

@ -802,17 +802,3 @@ RZ_API RZ_OWN char *rz_list_to_str(RZ_NONNULL RzList *list, char ch) {
}
return rz_strbuf_drain(buf);
}
/**
* \brief Converts a SdbList into a RzList
*
**/
RZ_API RZ_OWN RzList *rz_list_of_sdblist(SdbList *sl) {
RzList *l = rz_list_newf(free);
SdbKv *kv;
SdbListIter *iter;
ls_foreach (sl, iter, kv) {
rz_list_append(l, strdup(sdbkv_key(kv)));
}
return l;
}