summaryrefslogtreecommitdiffstats
path: root/usr.bin/dig/lib/isc/unix/time.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/dig/lib/isc/unix/time.c')
-rw-r--r--usr.bin/dig/lib/isc/unix/time.c23
1 files changed, 1 insertions, 22 deletions
diff --git a/usr.bin/dig/lib/isc/unix/time.c b/usr.bin/dig/lib/isc/unix/time.c
index 4d63835291c..a0f60d032fd 100644
--- a/usr.bin/dig/lib/isc/unix/time.c
+++ b/usr.bin/dig/lib/isc/unix/time.c
@@ -14,7 +14,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: time.c,v 1.13 2020/02/16 21:08:15 florian Exp $ */
+/* $Id: time.c,v 1.14 2020/02/16 21:08:59 florian Exp $ */
/*! \file */
@@ -58,27 +58,6 @@ isc_time_now(struct timespec *t) {
return (ISC_R_SUCCESS);
}
-isc_result_t
-isc_time_add(const struct timespec *t, const struct timespec *i, struct timespec *result)
-{
- REQUIRE(t != NULL && i != NULL && result != NULL);
- INSIST(t->tv_nsec < NS_PER_S && i->tv_nsec < NS_PER_S);
-
- timespecadd(t, i, result);
- return (ISC_R_SUCCESS);
-}
-
-isc_result_t
-isc_time_subtract(const struct timespec *t, const struct timespec *i,
- struct timespec *result)
-{
- REQUIRE(t != NULL && i != NULL && result != NULL);
- INSIST(t->tv_nsec < NS_PER_S && i->tv_nsec < NS_PER_S);
-
- timespecsub(t, i, result);
- return (ISC_R_SUCCESS);
-}
-
uint64_t
isc_time_microdiff(const struct timespec *t1, const struct timespec *t2) {
struct timespec res;