diff options
Diffstat (limited to 'core/os')
-rw-r--r-- | core/os/file_access.cpp | 13 | ||||
-rw-r--r-- | core/os/file_access.h | 2 |
2 files changed, 0 insertions, 15 deletions
diff --git a/core/os/file_access.cpp b/core/os/file_access.cpp index a7730e5efe..59f07c03e7 100644 --- a/core/os/file_access.cpp +++ b/core/os/file_access.cpp @@ -488,19 +488,6 @@ uint64_t FileAccess::get_modified_time(const String &p_file) { memdelete(fa); return mt; } -// NEW FUNCTION -uint64_t FileAccess::get_creation_time(const String &p_file) { - - if (PackedData::get_singleton() && !PackedData::get_singleton()->is_disabled() && PackedData::get_singleton()->has_path(p_file)) - return 0; - - FileAccess *fa = create_for_path(p_file); - ERR_FAIL_COND_V(!fa, 0); - - uint64_t ct = fa->_get_creation_time(p_file); - memdelete(fa); - return ct; -} void FileAccess::store_string(const String &p_string) { diff --git a/core/os/file_access.h b/core/os/file_access.h index 2b9477a79c..c4635fdfbb 100644 --- a/core/os/file_access.h +++ b/core/os/file_access.h @@ -59,7 +59,6 @@ protected: String fix_path(const String &p_path) const; virtual Error _open(const String &p_path, int p_mode_flags) = 0; ///< open a file virtual uint64_t _get_modified_time(const String &p_file) = 0; - virtual uint64_t _get_creation_time(const String &p_file) = 0; // NEW FUNCTION static FileCloseFailNotify close_fail_notify; @@ -154,7 +153,6 @@ public: static CreateFunc get_create_func(AccessType p_access); static bool exists(const String &p_name); ///< return true if a file exists static uint64_t get_modified_time(const String &p_file); - static uint64_t get_creation_time(const String &p_file); // NEW FUNCTION static void set_backup_save(bool p_enable) { backup_save = p_enable; }; static bool is_backup_save_enabled() { return backup_save; }; |