From 33fc3600004690a9e1868b5fb1ca81da79c2fd61 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 23 Dec 2011 02:44:02 +0000 Subject: Use serd_file_sink. git-svn-id: http://svn.drobilla.net/sord/trunk@184 3d64ff67-21c5-427c-a301-fe4f08042e5a --- sord/sordmm.hpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'sord') diff --git a/sord/sordmm.hpp b/sord/sordmm.hpp index cbb5460..b3265d2 100644 --- a/sord/sordmm.hpp +++ b/sord/sordmm.hpp @@ -472,13 +472,6 @@ Model::load_file(SerdEnv* env, serd_reader_free(reader); } -static size_t -file_sink(const void* buf, size_t len, void* stream) -{ - FILE* file = (FILE*)stream; - return fwrite(buf, 1, len, file); -} - inline SerdStatus Model::write_to_file(const std::string& uri, SerdSyntax syntax, SerdStyle style) { @@ -510,7 +503,7 @@ Model::write_to_file(const std::string& uri, SerdSyntax syntax, SerdStyle style) style, _world.prefixes().c_obj(), &base_uri, - file_sink, + serd_file_sink, fd); serd_env_foreach(_world.prefixes().c_obj(), -- cgit v1.2.1