mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
AK: Remove unused template
This commit is contained in:
parent
90c070cb1d
commit
b7c5d977c7
Notes:
sideshowbarker
2024-07-18 21:48:26 +09:00
Author: https://github.com/BenWiederhake Commit: https://github.com/SerenityOS/serenity/commit/b7c5d977c72 Pull-request: https://github.com/SerenityOS/serenity/pull/5323 Reviewed-by: https://github.com/ADKaster Reviewed-by: https://github.com/awesomekling Reviewed-by: https://github.com/bgianfo
1 changed files with 0 additions and 12 deletions
12
AK/Time.h
12
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;
|
||||
|
|
Loading…
Reference in a new issue