summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-09-28 22:57:03 +0000
committerDavid Robillard <d@drobilla.net>2011-09-28 22:57:03 +0000
commit8a2a438a0cc37a91f2173ed8565c960a3cdbf214 (patch)
tree88d7701478d55343bc6e49b91c3972dee1c616ab
parentb3219731a7da23eb7779a7380eac87799ade313b (diff)
downloadlilv-8a2a438a0cc37a91f2173ed8565c960a3cdbf214.tar.gz
lilv-8a2a438a0cc37a91f2173ed8565c960a3cdbf214.tar.bz2
lilv-8a2a438a0cc37a91f2173ed8565c960a3cdbf214.zip
Remove useless wrapper.
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3503 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r--src/collections.c16
-rw-r--r--src/lilv_internal.h3
2 files changed, 2 insertions, 17 deletions
diff --git a/src/collections.c b/src/collections.c
index fc24669..e057c6f 100644
--- a/src/collections.c
+++ b/src/collections.c
@@ -136,18 +136,6 @@ lilv_nodes_contains(const LilvNodes* list, const LilvNode* value)
/* Iterator */
-LilvIter*
-lilv_iter_next(LilvIter* i)
-{
- return zix_tree_iter_next((ZixTreeIter*)i);
-}
-
-bool
-lilv_iter_end(LilvIter* i)
-{
- return !i || zix_tree_iter_is_end((ZixTreeIter*)i);
-}
-
#define LILV_COLLECTION_IMPL(prefix, CT, ET) \
LILV_API \
unsigned \
@@ -170,13 +158,13 @@ prefix##_get(const CT* collection, LilvIter* i) { \
LILV_API \
LilvIter* \
prefix##_next(const CT* collection, LilvIter* i) { \
- return lilv_iter_next(i); \
+ return zix_tree_iter_next(i); \
} \
\
LILV_API \
bool \
prefix##_is_end(const CT* collection, LilvIter* i) { \
- return lilv_iter_end(i); \
+ return zix_tree_iter_is_end(i); \
}
LILV_COLLECTION_IMPL(lilv_plugin_classes, LilvPluginClasses, LilvPluginClass)
diff --git a/src/lilv_internal.h b/src/lilv_internal.h
index 03252a3..0d4310f 100644
--- a/src/lilv_internal.h
+++ b/src/lilv_internal.h
@@ -203,9 +203,6 @@ LilvNode* lilv_plugin_get_unique(const LilvPlugin* p,
const SordNode* subject,
const SordNode* predicate);
-LilvIter* lilv_iter_next(LilvIter* i);
-bool lilv_iter_end(LilvIter* i);
-
void lilv_collection_free(LilvCollection* collection);
unsigned lilv_collection_size(const LilvCollection* collection);
LilvIter* lilv_collection_begin(const LilvCollection* collection);