From 06c0c503acd9d523d4d18eeac862222a744db2ab Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 10 Jan 2017 17:35:49 +0100 Subject: [PATCH] eliminating dead cth field --- src/ats-tests/ats-testing.c | 18 +----------------- src/ats-tests/ats-testing.h | 15 +++++---------- 2 files changed, 6 insertions(+), 27 deletions(-) diff --git a/src/ats-tests/ats-testing.c b/src/ats-tests/ats-testing.c index 3d2fc2c98..1bcef5806 100644 --- a/src/ats-tests/ats-testing.c +++ b/src/ats-tests/ats-testing.c @@ -1,6 +1,6 @@ /* This file is part of GNUnet. - Copyright (C) 2010-2013, 2016 GNUnet e.V. + Copyright (C) 2010-2013, 2016, 2017 GNUnet e.V. GNUnet is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published @@ -88,10 +88,6 @@ do_shutdown (void *cls) for (c_op = 0; c_op < p->num_partners; c_op++) { - if (NULL != p->partners[c_op].cth) - { - p->partners[c_op].cth = NULL; - } if ( (NULL != p->core_connect_ops) && (NULL != p->core_connect_ops[c_op].connect_op) ) { @@ -127,14 +123,6 @@ do_shutdown (void *cls) GNUNET_TESTBED_operation_done (p->peer_id_op); p->peer_id_op = NULL; } - - for (c_op = 0; c_op < p->num_partners; c_op++) - { - if (NULL != p->partners[c_op].cth) - { - p->partners[c_op].cth = NULL; - } - } if (NULL != p->ats_perf_op) { GNUNET_TESTBED_operation_done (p->ats_perf_op); @@ -312,10 +300,6 @@ comm_disconnect_cb (void *cls, "%s disconnected from %s while benchmarking\n", id, GNUNET_i2s (peer)); - if (NULL != p->cth) - { - p->cth = NULL; - } } GNUNET_free(id); } diff --git a/src/ats-tests/ats-testing.h b/src/ats-tests/ats-testing.h index de189953e..32f0b02d8 100644 --- a/src/ats-tests/ats-testing.h +++ b/src/ats-tests/ats-testing.h @@ -284,11 +284,6 @@ struct BenchmarkPartner */ struct BenchmarkPeer *dest; - /** - * Core transmit handles - */ - struct GNUNET_CORE_TransmitHandle *cth; - /** * Message queue handle. */ @@ -335,27 +330,27 @@ struct BenchmarkPartner unsigned int bytes_received; /** - * Current ATS properties + * Current ATS properties */ struct GNUNET_ATS_Properties props; /** - * Bandwidth assigned inbound + * Bandwidth assigned inbound */ uint32_t bandwidth_in; /** - * Bandwidth assigned outbound + * Bandwidth assigned outbound */ uint32_t bandwidth_out; /** - * Current preference values for bandwidth + * Current preference values for bandwidth */ double pref_bandwidth; /** - * Current preference values for delay + * Current preference values for delay */ double pref_delay; -- 2.25.1