-dead code elimination
authorChristian Grothoff <christian@grothoff.org>
Tue, 13 Aug 2013 22:47:27 +0000 (22:47 +0000)
committerChristian Grothoff <christian@grothoff.org>
Tue, 13 Aug 2013 22:47:27 +0000 (22:47 +0000)
src/core/gnunet-service-core_clients.c

index db72f147a1a4e14b92b361192525fd7e6a697cae..63c3b79bea51ed56f677d9860cfb8fb3e089f2ad 100644 (file)
@@ -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);