aboutsummaryrefslogtreecommitdiffstats
path: root/src/world.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/world.c')
-rw-r--r--src/world.c17
1 files changed, 3 insertions, 14 deletions
diff --git a/src/world.c b/src/world.c
index 2437d83d..f16b0f95 100644
--- a/src/world.c
+++ b/src/world.c
@@ -39,9 +39,9 @@ serd_world_fopen(SerdWorld* world, const char* path, const char* mode)
{
FILE* fd = fopen(path, mode);
if (!fd) {
- serd_world_errorf(world, SERD_ERR_INTERNAL,
- "failed to open file %s (%s)\n",
- path, strerror(errno));
+ SERD_LOG_ERRORF(world, SERD_ERR_INTERNAL,
+ "failed to open file %s (%s)\n",
+ path, strerror(errno));
return NULL;
}
#if defined(HAVE_POSIX_FADVISE) && defined(HAVE_FILENO)
@@ -87,17 +87,6 @@ serd_world_logf(const SerdWorld* world,
return st;
}
-SerdStatus
-serd_world_errorf(const SerdWorld* world, SerdStatus st, const char* fmt, ...)
-{
- va_list args;
- va_start(args, fmt);
- const SerdMessage msg = { st, SERD_LOG_LEVEL_ERROR, NULL, fmt, &args };
- serd_world_log(world, &msg);
- va_end(args);
- return st;
-}
-
SerdWorld*
serd_world_new(void)
{