diff options
author | David Robillard <d@drobilla.net> | 2018-02-04 20:49:28 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2018-05-27 18:21:57 +0200 |
commit | 0dc150a9e5dbfed959041e46a1f1310f6bcc9604 (patch) | |
tree | 3ea29763d6fdd8456e89ac1af9c74a78ea052e8c /src/uri.c | |
parent | c564145e6f9aebabb5dfe0896e36d2bb6bc8b6b9 (diff) | |
download | serd-0dc150a9e5dbfed959041e46a1f1310f6bcc9604.tar.gz serd-0dc150a9e5dbfed959041e46a1f1310f6bcc9604.tar.bz2 serd-0dc150a9e5dbfed959041e46a1f1310f6bcc9604.zip |
Remove serd_uri_to_path()
Diffstat (limited to 'src/uri.c')
-rw-r--r-- | src/uri.c | 24 |
1 files changed, 0 insertions, 24 deletions
@@ -22,30 +22,6 @@ // #define URI_DEBUG 1 SERD_API -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; -} - -SERD_API char* serd_file_uri_parse(const char* uri, char** hostname) { |