aboutsummaryrefslogtreecommitdiffstats
path: root/src/uri.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-02-04 20:49:28 +0100
committerDavid Robillard <d@drobilla.net>2019-04-13 19:15:32 +0200
commita0b173de316be27bea4cd00cd88c9bf65016df45 (patch)
treea8c9d4a0cb3e6c677660f8335c8dcae25871be4c /src/uri.c
parent2cdb106b83c9e471a9a8ee9ba623d9943323e58e (diff)
downloadserd-a0b173de316be27bea4cd00cd88c9bf65016df45.tar.gz
serd-a0b173de316be27bea4cd00cd88c9bf65016df45.tar.bz2
serd-a0b173de316be27bea4cd00cd88c9bf65016df45.zip
Remove serd_uri_to_path()
Diffstat (limited to 'src/uri.c')
-rw-r--r--src/uri.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/src/uri.c b/src/uri.c
index 47d7aa0c..9cf6a2a6 100644
--- a/src/uri.c
+++ b/src/uri.c
@@ -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)
{