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>2018-05-27 18:23:15 +0200
commit3efbbdb49f4122d3879007227eafc5afe520d7c5 (patch)
tree309289450940ea4b4b0046822b9ad526b6e41b74 /src/serd_internal.h
parent40268925466dba7a37b468be0bba951e7f6ca5d1 (diff)
downloadserd-3efbbdb49f4122d3879007227eafc5afe520d7c5.tar.gz
serd-3efbbdb49f4122d3879007227eafc5afe520d7c5.tar.bz2
serd-3efbbdb49f4122d3879007227eafc5afe520d7c5.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