summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/filesystem.c16
-rw-r--r--src/filesystem.h4
-rw-r--r--src/state.c4
3 files changed, 2 insertions, 22 deletions
diff --git a/src/filesystem.c b/src/filesystem.c
index b17f67a..e2fc776 100644
--- a/src/filesystem.c
+++ b/src/filesystem.c
@@ -42,22 +42,6 @@ is_windows_path(const char* path)
#endif
bool
-lilv_path_is_absolute(const char* path)
-{
- if (lilv_is_dir_sep(path[0])) {
- return true;
- }
-
-#ifdef _WIN32
- if (is_windows_path(path)) {
- return true;
- }
-#endif
-
- return false;
-}
-
-bool
lilv_path_is_child(const char* path, const char* dir)
{
if (path && dir) {
diff --git a/src/filesystem.h b/src/filesystem.h
index e50b1af..849d78f 100644
--- a/src/filesystem.h
+++ b/src/filesystem.h
@@ -3,10 +3,6 @@
#include <stdbool.h>
-/// Return true iff `path` is an absolute path
-bool
-lilv_path_is_absolute(const char* path);
-
/// Return true iff `path` is a child of `dir`
bool
lilv_path_is_child(const char* path, const char* dir);
diff --git a/src/state.c b/src/state.c
index 7ee8f87..ba2df78 100644
--- a/src/state.c
+++ b/src/state.c
@@ -340,7 +340,7 @@ absolute_path(LV2_State_Map_Path_Handle handle, const char* state_path)
{
LilvState* state = (LilvState*)handle;
char* path = NULL;
- if (lilv_path_is_absolute(state_path)) {
+ if (zix_path_is_absolute(state_path)) {
// Absolute path, return identical path
path = lilv_strdup(state_path);
} else if (state->dir) {
@@ -573,7 +573,7 @@ set_state_dir_from_model(LilvState* state, const SordNode* graph)
state->dir = zix_path_join(NULL, path, NULL);
free(path);
}
- assert(!state->dir || lilv_path_is_absolute(state->dir));
+ assert(!state->dir || zix_path_is_absolute(state->dir));
}
static LilvState*