aboutsummaryrefslogtreecommitdiff
path: root/src/build.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/build.c')
-rw-r--r--src/build.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/build.c b/src/build.c
index 3afc05047..cb4b96f91 100644
--- a/src/build.c
+++ b/src/build.c
@@ -213,26 +213,6 @@ String get_fullpath_core(gbAllocator a, String path) {
return res;
}
-String get_filepath_extension(String path) {
- isize dot = 0;
- bool seen_slash = false;
- for (isize i = path.len-1; i >= 0; i--) {
- u8 c = path.text[i];
- if (c == '/' || c == '\\') {
- seen_slash = true;
- }
-
- if (c == '.') {
- if (seen_slash) {
- return str_lit("");
- }
-
- dot = i;
- break;
- }
- }
- return make_string(path.text, dot);
-}