diff options
author | David Klempner <klempner@google.com> | 2015-02-04 12:02:17 -0800 |
---|---|---|
committer | David Klempner <klempner@google.com> | 2015-02-04 12:02:17 -0800 |
commit | c15622b95c8162cf981aa63caf8d764ab1718b09 (patch) | |
tree | a25a91ee8714a213f4bbd6797e65e038c0517802 /src/core/support | |
parent | 78d1fd07d27a2ac28eca792933e052cb1fe1fa17 (diff) |
Remove timeval functions
They only had one caller, which could easily be converted to use
timespec instead of timeval.
Diffstat (limited to 'src/core/support')
-rw-r--r-- | src/core/support/time.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/core/support/time.c b/src/core/support/time.c index 97243318fd..268a43c677 100644 --- a/src/core/support/time.c +++ b/src/core/support/time.c @@ -234,22 +234,6 @@ int gpr_time_similar(gpr_timespec a, gpr_timespec b, gpr_timespec threshold) { } } -struct timeval gpr_timeval_from_timespec(gpr_timespec t) { - /* TODO(klempner): Consider whether this should round up, since it is likely - to be used for delays */ - struct timeval tv; - tv.tv_sec = t.tv_sec; - tv.tv_usec = t.tv_nsec / 1000; - return tv; -} - -gpr_timespec gpr_timespec_from_timeval(struct timeval t) { - gpr_timespec ts; - ts.tv_sec = t.tv_sec; - ts.tv_nsec = t.tv_usec * 1000; - return ts; -} - gpr_int32 gpr_time_to_millis(gpr_timespec t) { if (t.tv_sec >= 2147483) { if (t.tv_sec == 2147483 && t.tv_nsec < 648 * GPR_NS_PER_MS) { |