From 4dba05e7ab2cd3caa3fd9c6872b7e21b39bb8ead Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 10 May 2018 20:14:24 +0200 Subject: Move error handling to world --- src/serd_internal.h | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'src/serd_internal.h') 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 -- cgit v1.2.1