summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--slv2/slv2.h8
-rw-r--r--src/collections.c7
-rw-r--r--src/slv2_internal.h14
3 files changed, 9 insertions, 20 deletions
diff --git a/slv2/slv2.h b/slv2/slv2.h
index c4c2420..2434561 100644
--- a/slv2/slv2.h
+++ b/slv2/slv2.h
@@ -517,6 +517,14 @@ slv2_plugins_get_at(SLV2Plugins collection, unsigned index) {
}
/**
+ This function is deprecated, it does nothing.
+*/
+SLV2_DEPRECATED
+static inline void
+slv2_plugins_free(SLV2World world, SLV2Plugins plugins) {
+}
+
+/**
Get a plugin from @a plugins by URI.
Return value is shared (stored in @a plugins) and must not be freed or
modified by the caller in any way.
diff --git a/src/collections.c b/src/collections.c
index ee84f68..bdbf640 100644
--- a/src/collections.c
+++ b/src/collections.c
@@ -129,13 +129,6 @@ slv2_plugins_new()
return g_sequence_new(NULL);
}
-void
-slv2_plugins_free(SLV2World world, SLV2Plugins list)
-{
- if (list && list != world->plugins)
- g_sequence_free(list);
-}
-
SLV2_API
SLV2Plugin
slv2_plugins_get_by_uri(SLV2Plugins list, SLV2Value uri)
diff --git a/src/slv2_internal.h b/src/slv2_internal.h
index 880f3c5..f800a68 100644
--- a/src/slv2_internal.h
+++ b/src/slv2_internal.h
@@ -136,22 +136,10 @@ slv2_plugin_get_unique(SLV2Plugin p,
/* ********* Plugins ********* */
-/** Create a new, empty plugin list.
- *
- * Returned object must be freed with slv2_plugins_free.
- */
+
SLV2Plugins
slv2_plugins_new();
-/**
- Free a plugin collection.
- Freeing a plugin collection does not destroy the plugins it contains
- (plugins are owned by the world). @a plugins is invalid after this call.
-*/
-void
-slv2_plugins_free(SLV2World world,
- SLV2Plugins plugins);
-
/* ********* Instance ********* */