From ea3d997f9d4243c21a9f7a65d0320f31c4d57f54 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Fri, 10 Aug 2018 13:29:49 -0300 Subject: Revert "added get_creation_time function for gdscript" --- drivers/unix/file_access_unix.cpp | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'drivers/unix/file_access_unix.cpp') diff --git a/drivers/unix/file_access_unix.cpp b/drivers/unix/file_access_unix.cpp index 76b2676c71..c25d34125d 100644 --- a/drivers/unix/file_access_unix.cpp +++ b/drivers/unix/file_access_unix.cpp @@ -297,22 +297,6 @@ uint64_t FileAccessUnix::_get_modified_time(const String &p_file) { }; } -// NEW FUNCTION -uint64_t FileAccessUnix::_get_creation_time(const String &p_file) { - - String file = fix_path(p_file); - struct stat flags; - int err = stat(file.utf8().get_data(), &flags); - - if (!err) { - return flags.st_ctime; - } else { - print_line("ERROR IN: " + p_file); - - ERR_FAIL_V(0); - }; -} - Error FileAccessUnix::_chmod(const String &p_path, int p_mod) { int err = chmod(p_path.utf8().get_data(), p_mod); if (!err) { -- cgit v1.2.3