summaryrefslogtreecommitdiff
path: root/src/platform/platform_unix.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/platform/platform_unix.c')
-rw-r--r--src/platform/platform_unix.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/platform/platform_unix.c b/src/platform/platform_unix.c
deleted file mode 100644
index 86ac170..0000000
--- a/src/platform/platform_unix.c
+++ /dev/null
@@ -1,16 +0,0 @@
-#include "platform.h"
-
-#if defined(CEL_PLATFORM_LINUX) || defined(CEL_PLATFORM_MAC)
-
-#include <libgen.h>
-#include <string.h>
-
-path_opt path_parent(arena* a, const char* path) {
- // Duplicate the string because dirname doesnt like const literals
- char* path_copy = arena_alloc(a, strlen(path) + 1);
- strcpy(path_copy, path);
- char* path_dirname = dirname(path_copy);
- return (path_opt){ .path = Str8_cstr_view(path_dirname), .has_value = true };
-}
-
-#endif