aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_cell_queue.c
diff options
context:
space:
mode:
authorcypherpunks <cypherpunks@torproject.org>2015-02-21 17:18:20 -0500
committerNick Mathewson <nickm@torproject.org>2015-02-23 11:19:31 -0500
commit5246e8f99255b376ded3d90b3c7a345c4748e68c (patch)
tree29959cb325f3f95a2fc051cf3395e82208bb8a0c /src/test/test_cell_queue.c
parent385558c32f666456ed10ed9dce3f4009437b015d (diff)
downloadtor-5246e8f99255b376ded3d90b3c7a345c4748e68c.tar.gz
tor-5246e8f99255b376ded3d90b3c7a345c4748e68c.zip
Remove lingering mempool code
Diffstat (limited to 'src/test/test_cell_queue.c')
-rw-r--r--src/test/test_cell_queue.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/test/test_cell_queue.c b/src/test/test_cell_queue.c
index effd316f34..ed34df2ea2 100644
--- a/src/test/test_cell_queue.c
+++ b/src/test/test_cell_queue.c
@@ -16,10 +16,6 @@ test_cq_manip(void *arg)
cell_t cell;
(void) arg;
-#ifdef ENABLE_MEMPOOLS
- init_cell_pool();
-#endif /* ENABLE_MEMPOOLS */
-
cell_queue_init(&cq);
tt_int_op(cq.n, OP_EQ, 0);
@@ -99,10 +95,6 @@ test_cq_manip(void *arg)
packed_cell_free(pc_tmp);
cell_queue_clear(&cq);
-
-#ifdef ENABLE_MEMPOOLS
- free_cell_pool();
-#endif /* ENABLE_MEMPOOLS */
}
static void
@@ -114,10 +106,6 @@ test_circuit_n_cells(void *arg)
(void)arg;
-#ifdef ENABLE_MEMPOOLS
- init_cell_pool();
-#endif /* ENABLE_MEMPOOLS */
-
pc1 = packed_cell_new();
pc2 = packed_cell_new();
pc3 = packed_cell_new();
@@ -144,10 +132,6 @@ test_circuit_n_cells(void *arg)
done:
circuit_free(TO_CIRCUIT(or_c));
circuit_free(TO_CIRCUIT(origin_c));
-
-#ifdef ENABLE_MEMPOOLS
- free_cell_pool();
-#endif /* ENABLE_MEMPOOLS */
}
struct testcase_t cell_queue_tests[] = {