aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-12-30 12:35:47 -0500
committerDavid Robillard <d@drobilla.net>2020-10-27 13:13:58 +0100
commit18b0689fe567929b6eb6a1986b16139a122ca12c (patch)
treea5252c5a2ed6d1aaa5d9371c20a54c26746a38fb /src
parentf58e9a1cd558de40efaa26a0a6e58ae5c61bbcfc (diff)
downloadserd-18b0689fe567929b6eb6a1986b16139a122ca12c.tar.gz
serd-18b0689fe567929b6eb6a1986b16139a122ca12c.tar.bz2
serd-18b0689fe567929b6eb6a1986b16139a122ca12c.zip
Remove serd_env_foreach()
This is not particularly useful except to write prefixes, which is what serd_env_write_prefixes is for, and the name implies that namespace prefixes are the only thing in an Env, which will be problematic in the future.
Diffstat (limited to 'src')
-rw-r--r--src/env.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/env.c b/src/env.c
index c883a9ca..c8cbf18f 100644
--- a/src/env.c
+++ b/src/env.c
@@ -318,16 +318,6 @@ serd_env_expand(const SerdEnv* env, const SerdNode* node)
}
void
-serd_env_foreach(const SerdEnv* env,
- SerdPrefixSink func,
- void* handle)
-{
- for (size_t i = 0; i < env->n_prefixes; ++i) {
- func(handle, env->prefixes[i].name, env->prefixes[i].uri);
- }
-}
-
-void
serd_env_write_prefixes(const SerdEnv* env, const SerdSink* sink)
{
for (size_t i = 0; i < env->n_prefixes; ++i) {