summaryrefslogtreecommitdiff
path: root/src/helper/time_support.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/helper/time_support.c')
-rw-r--r--src/helper/time_support.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/helper/time_support.c b/src/helper/time_support.c
index 19343157..1f55bc20 100644
--- a/src/helper/time_support.c
+++ b/src/helper/time_support.c
@@ -51,13 +51,6 @@ int timeval_subtract(struct timeval *result, struct timeval *x, struct timeval *
return x->tv_sec < y->tv_sec;
}
-/* add two struct timeval values */
-int timeval_add(struct timeval *result, struct timeval *x, struct timeval *y)
-{
- memcpy(result, x, sizeof(struct timeval));
- return timeval_add_time(result, y->tv_sec, y->tv_usec);
-}
-
int timeval_add_time(struct timeval *result, long sec, long usec)
{
result->tv_sec += sec;