diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-04-26 10:24:33 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-04-26 12:01:48 -0400 |
commit | 7cbc44eeb19831bc467f8e1b87062ed1c87934d5 (patch) | |
tree | 69e87347182548124e6a00afe450b4bb5ac134b5 /src/or/connection.c | |
parent | 5e395ba2c2bf041cacf85e6ad38cb39ea8ae7419 (diff) | |
download | tor-7cbc44eeb19831bc467f8e1b87062ed1c87934d5.tar.gz tor-7cbc44eeb19831bc467f8e1b87062ed1c87934d5.zip |
Remove the "cached gettimeofday" logic.
Previously were using this value to have a cheap highish-resolution
timer. But we were only using it in one place, and current dogma is
to use monotime_coarse_t for this kind of thing.
Diffstat (limited to 'src/or/connection.c')
-rw-r--r-- | src/or/connection.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/or/connection.c b/src/or/connection.c index de0f0485b0..c2673ade16 100644 --- a/src/or/connection.c +++ b/src/or/connection.c @@ -3440,7 +3440,6 @@ connection_handle_read(connection_t *conn) { int res; - tor_gettimeofday_cache_clear(); res = connection_handle_read_impl(conn); return res; } @@ -3983,7 +3982,6 @@ int connection_handle_write(connection_t *conn, int force) { int res; - tor_gettimeofday_cache_clear(); conn->in_connection_handle_write = 1; res = connection_handle_write_impl(conn, force); conn->in_connection_handle_write = 0; |