aboutsummaryrefslogtreecommitdiffstats
path: root/src/ls.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ls.c')
-rw-r--r--src/ls.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/src/ls.c b/src/ls.c
index 838680f60..a4d0f2f7e 100644
--- a/src/ls.c
+++ b/src/ls.c
@@ -17,6 +17,7 @@
*/
#include "ls.h"
+#include "uri.h"
#include "client.h"
#include "config.h"
@@ -46,11 +47,6 @@ void print_supported_uri_schemes(struct client *client)
}
}
-bool uri_has_scheme(const char *uri)
-{
- return strstr(uri, "://") != NULL;
-}
-
bool uri_supported_scheme(const char *uri)
{
const char **urlPrefixes = remoteUrlPrefixes;
@@ -65,11 +61,3 @@ bool uri_supported_scheme(const char *uri)
return false;
}
-
-/* suffixes should be ascii only characters */
-const char *uri_get_suffix(const char *utf8file)
-{
- const char *dot = strrchr(g_basename(utf8file), '.');
-
- return dot != NULL ? dot + 1 : NULL;
-}