From 2e485ccc97cd07dac659cf37c9208cbf80fb18e0 Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Fri, 4 Nov 2016 09:47:27 +0000 Subject: [PATCH] -remove dead code --- src/cadet/gnunet-service-cadet_connection.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/cadet/gnunet-service-cadet_connection.c b/src/cadet/gnunet-service-cadet_connection.c index 662fd2644..dc947998a 100644 --- a/src/cadet/gnunet-service-cadet_connection.c +++ b/src/cadet/gnunet-service-cadet_connection.c @@ -720,15 +720,9 @@ conn_message_sent (void *cls, } GNUNET_free (q); } - else if (type == GNUNET_MESSAGE_TYPE_CADET_ENCRYPTED) - { - /* SHOULD NO LONGER HAPPEN FIXME: REMOVE CASE */ - // If NULL == q and ENCRYPTED == type, message must have been ch_mngmnt - forced = GNUNET_YES; - GNUNET_assert (0); // FIXME - } else /* CONN_CREATE or CONN_ACK */ { + GNUNET_assert (GNUNET_MESSAGE_TYPE_CADET_ENCRYPTED != type); forced = GNUNET_YES; } @@ -758,7 +752,6 @@ conn_message_sent (void *cls, case GNUNET_MESSAGE_TYPE_CADET_ENCRYPTED: if (GNUNET_YES == sent) { - GNUNET_assert (NULL != q); fc->last_pid_sent = pid; if (GC_is_pid_bigger (fc->last_pid_sent + 1, fc->last_ack_recv)) GCC_start_poll (c, fwd); -- 2.25.1