From b7c5d977c724c893d077a16648a0a0ea7fe061fc Mon Sep 17 00:00:00 2001 From: Ben Wiederhake Date: Sun, 21 Feb 2021 17:27:33 +0100 Subject: [PATCH] AK: Remove unused template --- AK/Time.h | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/AK/Time.h b/AK/Time.h index 8741d999e88..50f1929fe28 100644 --- a/AK/Time.h +++ b/AK/Time.h @@ -99,17 +99,6 @@ inline void timespec_sub(const TimespecType& a, const TimespecType& b, TimespecT } } -template -inline void timespec_sub_timeval(const TimespecType& a, const TimevalType& b, TimespecType& result) -{ - result.tv_sec = a.tv_sec - b.tv_sec; - result.tv_nsec = a.tv_nsec - b.tv_usec * 1000; - if (result.tv_nsec < 0) { - --result.tv_sec; - result.tv_nsec += 1'000'000'000; - } -} - template inline void timespec_add(const TimespecType& a, const TimespecType& b, TimespecType& result) { @@ -192,7 +181,6 @@ using AK::is_leap_year; using AK::timespec_add; using AK::timespec_add_timeval; using AK::timespec_sub; -using AK::timespec_sub_timeval; using AK::timespec_to_timeval; using AK::timeval_add; using AK::timeval_sub;