]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
relay: Remove max middle cells dead code
authorDavid Goulet <dgoulet@torproject.org>
Tue, 20 Mar 2018 18:58:12 +0000 (14:58 -0400)
committerDavid Goulet <dgoulet@torproject.org>
Wed, 4 Apr 2018 15:03:50 +0000 (11:03 -0400)
Next commit is addressing the circuit queue cell limit so cleanup before doing
anything else.

Part of #25226

Signed-off-by: David Goulet <dgoulet@torproject.org>
src/or/or.h
src/or/relay.c

index 2397f665110f36e06e1f3db758e4158c977711e9..8fcba42ad29577adb8e7baa103b2aa4a5f857619 100644 (file)
@@ -3524,12 +3524,6 @@ typedef struct or_circuit_t {
    * exit-ward queues of this circuit; reset every time when writing
    * buffer stats to disk. */
   uint64_t total_cell_waiting_time;
-
-  /** Maximum cell queue size for a middle relay; this is stored per circuit
-   * so append_cell_to_circuit_queue() can adjust it if it changes.  If set
-   * to zero, it is initialized to the default value.
-   */
-  uint32_t max_middle_cells;
 } or_circuit_t;
 
 #if REND_COOKIE_LEN != DIGEST_LEN
index 506b7eccb3401f445861b1c5bdd9afa42f3f9917..c8e0a2e61b3705d8dffe30c5208701369bf7085f 100644 (file)
@@ -99,9 +99,6 @@ static void adjust_exit_policy_from_exitpolicy_failure(origin_circuit_t *circ,
                                                   entry_connection_t *conn,
                                                   node_t *node,
                                                   const tor_addr_t *addr);
-#if 0
-static int get_max_middle_cells(void);
-#endif
 
 /** Stop reading on edge connections when we have this many cells
  * waiting on the appropriate queue. */