diff options
author | dec05eba <dec05eba@protonmail.com> | 2019-03-12 01:30:39 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-07-25 14:36:46 +0200 |
commit | c7d6e9eef452be6e1b5f393c30a19b7d449f6991 (patch) | |
tree | e327b14975aa1d26313a5bc54ec8b87b7d095665 | |
parent | b35b3e1bf70bf764940498247b1db5bb02761160 (diff) |
Comment out functions to be removed
-rw-r--r-- | include/std/file.h | 6 | ||||
-rw-r--r-- | src/std/file.c | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/include/std/file.h b/include/std/file.h index 8be0c66..120e7bb 100644 --- a/include/std/file.h +++ b/include/std/file.h @@ -21,9 +21,15 @@ typedef enum { } MappedFileMode; /* Hidden files (files starting with a dot) are skipped */ +/* +TODO: Remove the 3 following functions as they are not used. +They should be implemented in amalgam instead. +*/ +#if 0 CHECK_RESULT int scan_dir_recursive(const char *dir_path, scan_dir_callback_func callback_func, void *userdata); CHECK_RESULT int mapped_file_init(MappedFile *self, const char *filepath, MappedFileMode file_mode); CHECK_RESULT int mapped_file_deinit(MappedFile *self); +#endif CHECK_RESULT int read_whole_file(const char *filepath, char **data, usize *size); diff --git a/src/std/file.c b/src/std/file.c index 098b18f..177ccbc 100644 --- a/src/std/file.c +++ b/src/std/file.c @@ -15,6 +15,7 @@ #define SCANDIR_PATH_LENGTH 4096 #define MAX_FILE_SIZE 1024*1024*48 /* 48 mb */ +#if 0 static int scan_dir_recursive_internal(char *dir_path, int path_length, scan_dir_callback_func callback_func, void *userdata) { DIR *dir; @@ -165,6 +166,7 @@ int mapped_file_deinit(MappedFile *self) { else return 0; } +#endif typedef enum { REGULAR, |