summaryrefslogtreecommitdiff
path: root/AK
diff options
context:
space:
mode:
authorBen Wiederhake <BenWiederhake.GitHub@gmx.de>2021-02-21 17:27:33 +0100
committerAndreas Kling <kling@serenityos.org>2021-03-02 08:36:08 +0100
commitb7c5d977c724c893d077a16648a0a0ea7fe061fc (patch)
treed6e6d610d53d16a11bb99c41dd70df7686a33054 /AK
parent90c070cb1d90d77ba461017e609b9f8ee6326de1 (diff)
downloadserenity-b7c5d977c724c893d077a16648a0a0ea7fe061fc.zip
AK: Remove unused template
Diffstat (limited to 'AK')
-rw-r--r--AK/Time.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/AK/Time.h b/AK/Time.h
index 8741d999e8..50f1929fe2 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<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;