From b7948f8c9ad54c30e2579fd5da4626c6f3de325a Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 28 Jun 2020 23:26:48 +0200 Subject: WIP: Make Reader always read from a ByteSource --- src/world.c | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'src/world.c') diff --git a/src/world.c b/src/world.c index 2cbee1a6..0e8df944 100644 --- a/src/world.c +++ b/src/world.c @@ -21,11 +21,6 @@ #include "cursor.h" #include "namespaces.h" #include "node.h" -#include "serd_config.h" - -#if defined(USE_POSIX_FADVISE) -# include -#endif #include #include @@ -35,24 +30,6 @@ #define BLANK_CHARS 12 -FILE* -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)); - return NULL; - } -#if defined(USE_POSIX_FADVISE) && defined(USE_FILENO) - posix_fadvise(fileno(fd), 0, 0, POSIX_FADV_SEQUENTIAL); -#endif - return fd; -} - SerdStatus serd_world_error(const SerdWorld* world, const SerdError* e) { -- cgit v1.2.1