aboutsummaryrefslogtreecommitdiffstats
path: root/src/world.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-06-28 23:26:48 +0200
committerDavid Robillard <d@drobilla.net>2021-03-08 23:23:06 -0500
commitb7948f8c9ad54c30e2579fd5da4626c6f3de325a (patch)
tree9de00308f9c0d5aa0c3587ac9f4eab7724e71484 /src/world.c
parent4e7e642d0d7b6dfa704f5ae95475854bb8c9b0b2 (diff)
downloadserd-b7948f8c9ad54c30e2579fd5da4626c6f3de325a.tar.gz
serd-b7948f8c9ad54c30e2579fd5da4626c6f3de325a.tar.bz2
serd-b7948f8c9ad54c30e2579fd5da4626c6f3de325a.zip
WIP: Make Reader always read from a ByteSource
Diffstat (limited to 'src/world.c')
-rw-r--r--src/world.c23
1 files changed, 0 insertions, 23 deletions
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 <fcntl.h>
-#endif
#include <errno.h>
#include <stdarg.h>
@@ -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)
{