aboutsummaryrefslogtreecommitdiff
path: root/core/path/filepath/path_js.odin
diff options
context:
space:
mode:
authorJeroen van Rijn <Kelimion@users.noreply.github.com>2025-11-01 17:19:46 +0100
committerJeroen van Rijn <Kelimion@users.noreply.github.com>2026-02-08 12:56:05 +0100
commit2e970db51dc6e9edaefd6e3346807d6974bd155d (patch)
tree21a83cb071f33968fddab6d52c3585d83aef71eb /core/path/filepath/path_js.odin
parent0c341123cb7cd07db56def2be23865550bdef75a (diff)
Link some more of filepath to os2
Diffstat (limited to 'core/path/filepath/path_js.odin')
-rw-r--r--core/path/filepath/path_js.odin17
1 files changed, 1 insertions, 16 deletions
diff --git a/core/path/filepath/path_js.odin b/core/path/filepath/path_js.odin
index c0c85b487..e2657cb3e 100644
--- a/core/path/filepath/path_js.odin
+++ b/core/path/filepath/path_js.odin
@@ -1,20 +1,5 @@
package filepath
-import "base:runtime"
-import "core:strings"
-
SEPARATOR :: '/'
SEPARATOR_STRING :: `/`
-LIST_SEPARATOR :: ':'
-
-is_abs :: proc(path: string) -> bool {
- return strings.has_prefix(path, "/")
-}
-
-abs :: proc(path: string, allocator := context.allocator) -> (string, bool) {
- if is_abs(path) {
- return strings.clone(string(path), allocator), true
- }
-
- return path, false
-} \ No newline at end of file
+LIST_SEPARATOR :: ':' \ No newline at end of file