TIME_SUPPORT: review unused symbols
Remove unused functions: - timeval_add Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>__archive__
parent
b2468e3c4f
commit
c0b5ca6d17
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue