ntp: remove legacy module

This commit is contained in:
Maxim Prokhorov
2021-03-31 05:06:47 +03:00
parent b18322a853
commit 2de44ed5d9
7 changed files with 5 additions and 384 deletions

View File

@@ -101,9 +101,7 @@ const String& getVersion() {
}
String buildTime() {
#if NTP_LEGACY_SUPPORT && NTP_SUPPORT
return ntpDateTime(__UNIX_TIMESTAMP__);
#elif NTP_SUPPORT
#if NTP_SUPPORT
constexpr const time_t ts = __UNIX_TIMESTAMP__;
tm timestruct;
gmtime_r(&ts, &timestruct);