From: Christian Grothoff Date: Tue, 13 Aug 2013 22:47:27 +0000 (+0000) Subject: -dead code elimination X-Git-Tag: initial-import-from-subversion-38251~7849 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4f4182f72a4148de7576e27f9545b8f6ca9a5728;p=oweals%2Fgnunet.git -dead code elimination --- diff --git a/src/core/gnunet-service-core_clients.c b/src/core/gnunet-service-core_clients.c index db72f147a..63c3b79be 100644 --- a/src/core/gnunet-service-core_clients.c +++ b/src/core/gnunet-service-core_clients.c @@ -722,13 +722,6 @@ GSC_CLIENTS_notify_client_about_neighbour (struct GSC_Client *client, NULL, GNUNET_CONTAINER_MULTIHASHMAPOPTION_UNIQUE_ONLY)); size = sizeof (struct ConnectNotifyMessage); - if (size >= GNUNET_SERVER_MAX_MESSAGE_SIZE) - { - GNUNET_break (0); - /* recovery strategy: throw away performance data */ - atsi_count = 0; - size = sizeof (struct ConnectNotifyMessage); - } cnm = (struct ConnectNotifyMessage *) buf; cnm->header.size = htons (size); cnm->header.type = htons (GNUNET_MESSAGE_TYPE_CORE_NOTIFY_CONNECT);