From 1d188d2b9437f8a7685d0d139da7a6b9fb1b7c9c Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 22 Jul 2016 22:13:17 +0000 Subject: [PATCH] migrate more tests to new transmission API --- .../test_transport_api_blacklisting.c | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/src/transport/test_transport_api_blacklisting.c b/src/transport/test_transport_api_blacklisting.c index a2add5957..c3675bb9a 100644 --- a/src/transport/test_transport_api_blacklisting.c +++ b/src/transport/test_transport_api_blacklisting.c @@ -30,13 +30,6 @@ #define TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 30) -#define TEST_MESSAGE_SIZE 2600 - -#define TEST_MESSAGE_TYPE 12345 - - -static struct GNUNET_TRANSPORT_TransmitHandle *th; - static struct GNUNET_TRANSPORT_TESTING_ConnectCheckContext *ccc; static int connected; @@ -49,8 +42,6 @@ static struct GNUNET_TRANSPORT_Blacklist *blacklist_p1; static struct GNUNET_TRANSPORT_Blacklist *blacklist_p2; -static struct GNUNET_SCHEDULER_Task *send_task; - static struct GNUNET_SCHEDULER_Task *shutdown_task; @@ -81,21 +72,11 @@ end (void *cls) static void custom_shutdown (void *cls) { - if (NULL != send_task) - { - GNUNET_SCHEDULER_cancel (send_task); - send_task = NULL; - } if (NULL != shutdown_task) { GNUNET_SCHEDULER_cancel (shutdown_task); shutdown_task = NULL; } - if (NULL != th) - { - GNUNET_TRANSPORT_notify_transmit_ready_cancel (th); - th = NULL; - } if (NULL != blacklist_p1) { GNUNET_TRANSPORT_blacklist_cancel (blacklist_p1); -- 2.25.1