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>2018-11-25 09:21:03 +0100
commit8a315ba8778378c1d9e5f03173a1c0715698a601 (patch)
tree4cc08ea04d785c246660c1c282d74f0fbc53d8e7 /src/uri.c
parent43e4cba8561d332cdc0fa9d257008dc68bb65a96 (diff)
downloadserd-8a315ba8778378c1d9e5f03173a1c0715698a601.tar.gz
serd-8a315ba8778378c1d9e5f03173a1c0715698a601.tar.bz2
serd-8a315ba8778378c1d9e5f03173a1c0715698a601.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 d47580ae..15c6c0df 100644
--- a/src/uri.c
+++ b/src/uri.c
@@ -21,29 +21,6 @@
// #define URI_DEBUG 1
-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)
{