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>2020-06-21 18:12:03 +0200
commit4d310d89521c97ddcb683986cbe8e860457fe73a (patch)
tree494e1396abed0223f077ddc0936c8545e667e79e /src/serd_internal.h
parentf814ec24583a2dc11fc70421aec1aeb950a78244 (diff)
downloadserd-4d310d89521c97ddcb683986cbe8e860457fe73a.tar.gz
serd-4d310d89521c97ddcb683986cbe8e860457fe73a.tar.bz2
serd-4d310d89521c97ddcb683986cbe8e860457fe73a.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 64b641ce..81f90e60 100644
--- a/src/serd_internal.h
+++ b/src/serd_internal.h
@@ -71,15 +71,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