summaryrefslogtreecommitdiff
path: root/src/helper
diff options
context:
space:
mode:
authorAntonio Borneo <borneo.antonio@gmail.com>2010-04-10 19:25:32 +0800
committerAntonio Borneo <borneo.antonio@gmail.com>2010-04-10 19:25:32 +0800
commitc0b5ca6d17273aff849bc6546c7388562b751225 (patch)
treebf8a4c5da060241eaf93581b4a428ff3808d5438 /src/helper
parentb2468e3c4f09cd4e9f204aeb885dfdbbeb0a8dbb (diff)
downloadopenocd_libswd-c0b5ca6d17273aff849bc6546c7388562b751225.tar.gz
openocd_libswd-c0b5ca6d17273aff849bc6546c7388562b751225.tar.bz2
openocd_libswd-c0b5ca6d17273aff849bc6546c7388562b751225.tar.xz
openocd_libswd-c0b5ca6d17273aff849bc6546c7388562b751225.zip
TIME_SUPPORT: review unused symbols
Remove unused functions: - timeval_add Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Diffstat (limited to 'src/helper')
-rw-r--r--src/helper/time_support.c7
-rw-r--r--src/helper/time_support.h1
2 files changed, 0 insertions, 8 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;
diff --git a/src/helper/time_support.h b/src/helper/time_support.h
index a2d180a5..fab432d3 100644
--- a/src/helper/time_support.h
+++ b/src/helper/time_support.h
@@ -38,7 +38,6 @@
#endif
int timeval_subtract(struct timeval *result, struct timeval *x, struct timeval *y);
-int timeval_add(struct timeval *result, struct timeval *x, struct timeval *y);
int timeval_add_time(struct timeval *result, long sec, long usec);
/// @returns gettimeofday() timeval as 64-bit in ms