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>2020-10-27 13:13:58 +0100
commit45358052fb4fa254f06d0d704a27c5ed9608cc58 (patch)
treeb1a63145d5da80651cb8a7c3d0eb1130897cc8b7 /src/uri.c
parent21c59b99a1c75d58d8aab760105b0535cc04c6f1 (diff)
downloadserd-45358052fb4fa254f06d0d704a27c5ed9608cc58.tar.gz
serd-45358052fb4fa254f06d0d704a27c5ed9608cc58.tar.bz2
serd-45358052fb4fa254f06d0d704a27c5ed9608cc58.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 726b0f54..66ef0b6a 100644
--- a/src/uri.c
+++ b/src/uri.c
@@ -25,29 +25,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)
{