diff options
author | Ben Wiederhake <BenWiederhake.GitHub@gmx.de> | 2021-02-21 17:27:33 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-03-02 08:36:08 +0100 |
commit | b7c5d977c724c893d077a16648a0a0ea7fe061fc (patch) | |
tree | d6e6d610d53d16a11bb99c41dd70df7686a33054 /AK | |
parent | 90c070cb1d90d77ba461017e609b9f8ee6326de1 (diff) | |
download | serenity-b7c5d977c724c893d077a16648a0a0ea7fe061fc.zip |
AK: Remove unused template
Diffstat (limited to 'AK')
-rw-r--r-- | AK/Time.h | 12 |
1 files changed, 0 insertions, 12 deletions
@@ -99,17 +99,6 @@ inline void timespec_sub(const TimespecType& a, const TimespecType& b, TimespecT } } -template<typename TimespecType, typename TimevalType> -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<typename TimespecType> 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; |