aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2016-11-04 09:47:27 +0000
committerBart Polot <bart@net.in.tum.de>2016-11-04 09:47:27 +0000
commit2e485ccc97cd07dac659cf37c9208cbf80fb18e0 (patch)
tree1cf148d8928c810169a695f256807271e87871df /src
parent5d041450666fd1623ed1f25651a0a9c9b14525d8 (diff)
downloadgnunet-2e485ccc97cd07dac659cf37c9208cbf80fb18e0.tar.gz
gnunet-2e485ccc97cd07dac659cf37c9208cbf80fb18e0.zip
-remove dead code
Diffstat (limited to 'src')
-rw-r--r--src/cadet/gnunet-service-cadet_connection.c9
1 files changed, 1 insertions, 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,
720 } 720 }
721 GNUNET_free (q); 721 GNUNET_free (q);
722 } 722 }
723 else if (type == GNUNET_MESSAGE_TYPE_CADET_ENCRYPTED)
724 {
725 /* SHOULD NO LONGER HAPPEN FIXME: REMOVE CASE */
726 // If NULL == q and ENCRYPTED == type, message must have been ch_mngmnt
727 forced = GNUNET_YES;
728 GNUNET_assert (0); // FIXME
729 }
730 else /* CONN_CREATE or CONN_ACK */ 723 else /* CONN_CREATE or CONN_ACK */
731 { 724 {
725 GNUNET_assert (GNUNET_MESSAGE_TYPE_CADET_ENCRYPTED != type);
732 forced = GNUNET_YES; 726 forced = GNUNET_YES;
733 } 727 }
734 728
@@ -758,7 +752,6 @@ conn_message_sent (void *cls,
758 case GNUNET_MESSAGE_TYPE_CADET_ENCRYPTED: 752 case GNUNET_MESSAGE_TYPE_CADET_ENCRYPTED:
759 if (GNUNET_YES == sent) 753 if (GNUNET_YES == sent)
760 { 754 {
761 GNUNET_assert (NULL != q);
762 fc->last_pid_sent = pid; 755 fc->last_pid_sent = pid;
763 if (GC_is_pid_bigger (fc->last_pid_sent + 1, fc->last_ack_recv)) 756 if (GC_is_pid_bigger (fc->last_pid_sent + 1, fc->last_ack_recv))
764 GCC_start_poll (c, fwd); 757 GCC_start_poll (c, fwd);