X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Ftimedate%2Ftimedatectl.c;h=80afc57131b68c0b295dffcd2767306654bb8df5;hb=03cc26dda4cb59207fea3dd4fd1fa4608746739c;hp=141180c3937d561e4e121233a32445c1999964f3;hpb=aacf3b483b70b9a9ff16217f6376d143cbfe4636;p=elogind.git diff --git a/src/timedate/timedatectl.c b/src/timedate/timedatectl.c index 141180c39..80afc5713 100644 --- a/src/timedate/timedatectl.c +++ b/src/timedate/timedatectl.c @@ -72,18 +72,6 @@ typedef struct StatusInfo { bool can_ntp; } StatusInfo; -static bool ntp_synced(void) { - struct timex txc = {}; - - if (adjtimex(&txc) < 0) - return false; - - if (txc.status & STA_UNSYNC) - return false; - - return true; -} - static const char *jump_str(int delta_minutes, char *s, size_t size) { if (delta_minutes == 60) return "one hour forward";