From c99d1b4e0037d2add04310b8b72aa9242e89f570 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 13 May 2011 15:47:32 +0000 Subject: Tidy. git-svn-id: http://svn.drobilla.net/sord/trunk@114 3d64ff67-21c5-427c-a301-fe4f08042e5a --- src/sordi.c | 25 +------------------------ 1 file changed, 1 insertion(+), 24 deletions(-) (limited to 'src/sordi.c') diff --git a/src/sordi.c b/src/sordi.c index 493e4d1..ad1329c 100644 --- a/src/sordi.c +++ b/src/sordi.c @@ -35,7 +35,7 @@ print_version() { printf("sordi " SORD_VERSION " \n"); printf("Copyright 2011 David Robillard .\n" - "\nLicense: Simplified BSD License.\n" + "License: \n" "This is free software; you are free to change and redistribute it." "\nThere is NO WARRANTY, to the extent permitted by law.\n"); return 0; @@ -60,29 +60,6 @@ file_sink(const void* buf, size_t len, void* stream) return fwrite(buf, 1, len, file); } -static inline SerdNode -serd_node_from_sord_node(const SordNode* n) -{ - size_t n_bytes = 0; - const uint8_t* buf = sord_node_get_string_counted(n, &n_bytes); - SerdNode sn = { - (const uint8_t*)buf, n_bytes, n_bytes - 1, sord_node_get_flags(n), SERD_NOTHING - }; - // FIXME: UTF-8 - switch (sord_node_get_type(n)) { - case SORD_URI: - sn.type = SERD_URI; - break; - case SORD_BLANK: - sn.type = SERD_BLANK_ID; - break; - case SORD_LITERAL: - sn.type = SERD_LITERAL; - break; - } - return sn; -} - int main(int argc, char** argv) { -- cgit v1.2.1