diff options
author | David Robillard <d@drobilla.net> | 2018-02-04 20:49:28 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-06-21 18:12:03 +0200 |
commit | 77b496a15d3c263a1bbc7c4cc56583f4014c1d22 (patch) | |
tree | a74229920fd00c810a7ab70d46abde74247ea008 /src/uri.c | |
parent | afdb3664eeddd1285473ce5c5bbc5db2fe62b6fc (diff) | |
download | serd-77b496a15d3c263a1bbc7c4cc56583f4014c1d22.tar.gz serd-77b496a15d3c263a1bbc7c4cc56583f4014c1d22.tar.bz2 serd-77b496a15d3c263a1bbc7c4cc56583f4014c1d22.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
@@ -24,29 +24,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) { |