diff options
author | David Robillard <d@drobilla.net> | 2018-02-04 20:49:28 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2018-12-30 17:56:22 -0500 |
commit | 9f7d2de1ee0443c1d82a854ac459fc7dbe79749d (patch) | |
tree | 703e6a437d7fc6066e0db83df9c454455e9e88fe /src/uri.c | |
parent | 873b05eaedf2c3978cd98268afa6f982a25bc80b (diff) | |
download | serd-9f7d2de1ee0443c1d82a854ac459fc7dbe79749d.tar.gz serd-9f7d2de1ee0443c1d82a854ac459fc7dbe79749d.tar.bz2 serd-9f7d2de1ee0443c1d82a854ac459fc7dbe79749d.zip |
Remove serd_uri_to_path()
Diffstat (limited to 'src/uri.c')
-rw-r--r-- | src/uri.c | 23 |
1 files changed, 0 insertions, 23 deletions
@@ -19,29 +19,6 @@ #include <stdlib.h> #include <string.h> -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) { |