summaryrefslogtreecommitdiff
path: root/core/bind
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2018-08-10 13:30:00 -0300
committerGitHub <noreply@github.com>2018-08-10 13:30:00 -0300
commit767fb2fa0ba14ee6afb4eeeaad12e5dee944547b (patch)
tree3987cd371656fd23d039c3f12905bd713e6ee8b8 /core/bind
parent275e0d5ee4e80d9d3cd124ffa29a691b9aed3e70 (diff)
parentea3d997f9d4243c21a9f7a65d0320f31c4d57f54 (diff)
Merge pull request #20889 from godotengine/revert-18914-master
Revert "added get_creation_time function for gdscript"
Diffstat (limited to 'core/bind')
-rw-r--r--core/bind/core_bind.cpp8
-rw-r--r--core/bind/core_bind.h1
2 files changed, 0 insertions, 9 deletions
diff --git a/core/bind/core_bind.cpp b/core/bind/core_bind.cpp
index 1c3f4fad01..af1d49ae8c 100644
--- a/core/bind/core_bind.cpp
+++ b/core/bind/core_bind.cpp
@@ -1872,12 +1872,6 @@ uint64_t _File::get_modified_time(const String &p_file) const {
return FileAccess::get_modified_time(p_file);
}
-// NEW FUNCTION
-uint64_t _File::get_creation_time(const String &p_file) const {
-
- return FileAccess::get_creation_time(p_file);
-}
-
void _File::_bind_methods() {
ClassDB::bind_method(D_METHOD("open_encrypted", "path", "mode_flags", "key"), &_File::open_encrypted);
@@ -1929,7 +1923,6 @@ void _File::_bind_methods() {
ClassDB::bind_method(D_METHOD("file_exists", "path"), &_File::file_exists);
ClassDB::bind_method(D_METHOD("get_modified_time", "file"), &_File::get_modified_time);
- ClassDB::bind_method(D_METHOD("get_creation_time", "file"), &_File::get_creation_time); // NEW FUNCTION
ADD_PROPERTY(PropertyInfo(Variant::BOOL, "endian_swap"), "set_endian_swap", "get_endian_swap");
@@ -2130,7 +2123,6 @@ void _Directory::_bind_methods() {
ClassDB::bind_method(D_METHOD("file_exists", "path"), &_Directory::file_exists);
ClassDB::bind_method(D_METHOD("dir_exists", "path"), &_Directory::dir_exists);
//ClassDB::bind_method(D_METHOD("get_modified_time","file"),&_Directory::get_modified_time);
- //ClassDB::bind_method(D_METHOD("get_creation_time","file"),&_Directory::get_creation_time); // NEW FUNCTION
ClassDB::bind_method(D_METHOD("get_space_left"), &_Directory::get_space_left);
ClassDB::bind_method(D_METHOD("copy", "from", "to"), &_Directory::copy);
ClassDB::bind_method(D_METHOD("rename", "from", "to"), &_Directory::rename);
diff --git a/core/bind/core_bind.h b/core/bind/core_bind.h
index 18f84e0c04..1729c23779 100644
--- a/core/bind/core_bind.h
+++ b/core/bind/core_bind.h
@@ -485,7 +485,6 @@ public:
bool file_exists(const String &p_name) const; ///< return true if a file exists
uint64_t get_modified_time(const String &p_file) const;
- uint64_t get_creation_time(const String &p_file) const; // NEW FUNCTION
_File();
virtual ~_File();