From 45358052fb4fa254f06d0d704a27c5ed9608cc58 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 4 Feb 2018 20:49:28 +0100 Subject: Remove serd_uri_to_path() --- src/uri.c | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'src/uri.c') diff --git a/src/uri.c b/src/uri.c index 726b0f54..66ef0b6a 100644 --- a/src/uri.c +++ b/src/uri.c @@ -25,29 +25,6 @@ #include #include -const char* -serd_uri_to_path(const char* uri) -{ - const char* path = uri; - if (!is_windows_path(uri) && serd_uri_string_has_scheme(uri)) { - if (strncmp(uri, "file:", 5)) { - fprintf(stderr, "Non-file URI `%s'\n", uri); - return NULL; - } else if (!strncmp(uri, "file://localhost/", 17)) { - path = uri + 16; - } else if (!strncmp(uri, "file://", 7)) { - path = uri + 7; - } else { - fprintf(stderr, "Invalid file URI `%s'\n", uri); - return NULL; - } - if (is_windows_path(path + 1)) { - ++path; // Special case for terrible Windows file URIs - } - } - return path; -} - char* serd_file_uri_parse(const char* uri, char** hostname) { -- cgit v1.2.1