summaryrefslogtreecommitdiff
path: root/drivers/unix/dir_access_unix.cpp
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2018-08-10 13:29:49 -0300
committerGitHub <noreply@github.com>2018-08-10 13:29:49 -0300
commitea3d997f9d4243c21a9f7a65d0320f31c4d57f54 (patch)
tree3987cd371656fd23d039c3f12905bd713e6ee8b8 /drivers/unix/dir_access_unix.cpp
parent275e0d5ee4e80d9d3cd124ffa29a691b9aed3e70 (diff)
Revert "added get_creation_time function for gdscript"
Diffstat (limited to 'drivers/unix/dir_access_unix.cpp')
-rw-r--r--drivers/unix/dir_access_unix.cpp20
1 files changed, 0 insertions, 20 deletions
diff --git a/drivers/unix/dir_access_unix.cpp b/drivers/unix/dir_access_unix.cpp
index 8b2d05c7e9..5a4be6df4f 100644
--- a/drivers/unix/dir_access_unix.cpp
+++ b/drivers/unix/dir_access_unix.cpp
@@ -124,26 +124,6 @@ uint64_t DirAccessUnix::get_modified_time(String p_file) {
return 0;
};
-// NEW FUNCTION
-uint64_t DirAccessUnix::get_creation_time(String p_file) {
-
- if (p_file.is_rel_path())
- p_file = current_dir.plus_file(p_file);
-
- p_file = fix_path(p_file);
-
- struct stat flags;
- bool success = (stat(p_file.utf8().get_data(), &flags) == 0);
-
- if (success) {
- return flags.st_ctime;
- } else {
-
- ERR_FAIL_V(0);
- };
- return 0;
-};
-
String DirAccessUnix::get_next() {
if (!dir_stream)