command: capture command now handles both types commands
[fw/openocd] / src / helper / time_support.c
index 19343157c96a806d05cdbcb2379d1966a39c07e8..1f55bc20763c81349462b00bff14e70998aa1e49 100644 (file)
@@ -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;