aboutsummaryrefslogtreecommitdiffstats
path: root/src/serd_internal.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-05-10 20:14:24 +0200
committerDavid Robillard <d@drobilla.net>2019-04-13 19:15:32 +0200
commit61cc66d1f56dfe1cfa8da20f95d7152ca414c903 (patch)
tree6386c68bc28a613d2ce869091d0a17f9c4fb5b26 /src/serd_internal.h
parent0a375ebfb29b08d55824d9c18ea3812b8f6b9010 (diff)
downloadserd-61cc66d1f56dfe1cfa8da20f95d7152ca414c903.tar.gz
serd-61cc66d1f56dfe1cfa8da20f95d7152ca414c903.tar.bz2
serd-61cc66d1f56dfe1cfa8da20f95d7152ca414c903.zip
Move error handling to world
Diffstat (limited to 'src/serd_internal.h')
-rw-r--r--src/serd_internal.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/serd_internal.h b/src/serd_internal.h
index 172343b8..601af56c 100644
--- a/src/serd_internal.h
+++ b/src/serd_internal.h
@@ -69,15 +69,4 @@ serd_bufalloc(size_t size)
#endif
}
-static inline void
-serd_error(const SerdWorld* world, const SerdError* e)
-{
- if (world->error_sink) {
- world->error_sink(world->error_handle, e);
- } else {
- fprintf(stderr, "error: %s:%u:%u: ", e->filename, e->line, e->col);
- vfprintf(stderr, e->fmt, *e->args);
- }
-}
-
#endif // SERD_INTERNAL_H