From 7cbc44eeb19831bc467f8e1b87062ed1c87934d5 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Thu, 26 Apr 2018 10:24:33 -0400 Subject: 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. --- src/or/connection.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/or/connection.c') 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; -- cgit v1.2.3-54-g00ecf