From c6de3872f922256c9149f83067c9bef79566775b Mon Sep 17 00:00:00 2001 From: Emmanuel Leblond Date: Sun, 31 May 2020 14:19:31 +0200 Subject: Remove OS.get_system_time_secs/get_system_time_msecs and change OS.get_unix_time return type to double --- core/os/os.cpp | 10 +--------- core/os/os.h | 4 +--- 2 files changed, 2 insertions(+), 12 deletions(-) (limited to 'core/os') diff --git a/core/os/os.cpp b/core/os/os.cpp index c29930e485..113be2a0a0 100644 --- a/core/os/os.cpp +++ b/core/os/os.cpp @@ -83,15 +83,7 @@ uint64_t OS::get_splash_tick_msec() const { return _msec_splash; } -uint64_t OS::get_unix_time() const { - return 0; -} - -uint64_t OS::get_system_time_secs() const { - return 0; -} - -uint64_t OS::get_system_time_msecs() const { +double OS::get_unix_time() const { return 0; } diff --git a/core/os/os.h b/core/os/os.h index 9ca034a01c..04e10518dc 100644 --- a/core/os/os.h +++ b/core/os/os.h @@ -209,9 +209,7 @@ public: virtual Time get_time(bool local = false) const = 0; virtual TimeZoneInfo get_time_zone_info() const = 0; virtual String get_iso_date_time(bool local = false) const; - virtual uint64_t get_unix_time() const; - virtual uint64_t get_system_time_secs() const; - virtual uint64_t get_system_time_msecs() const; + virtual double get_unix_time() const; virtual void delay_usec(uint32_t p_usec) const = 0; virtual uint64_t get_ticks_usec() const = 0; -- cgit v1.2.3