From 3c4d9d3e55788f7e15ad660e8b39160be0616f0a Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 1 Dec 2010 18:55:50 +0000 Subject: [PATCH] removing unnecessary check and outdated comment --- src/transport/transport_api.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/transport/transport_api.c b/src/transport/transport_api.c index 110dfac41..1dbf8cb10 100644 --- a/src/transport/transport_api.c +++ b/src/transport/transport_api.c @@ -401,7 +401,6 @@ struct GNUNET_TRANSPORT_Handle }; -// FIXME: replace with hash map! /** * Get the neighbour list entry for the given peer * @@ -413,9 +412,6 @@ static struct NeighbourList * neighbour_find (struct GNUNET_TRANSPORT_Handle *h, const struct GNUNET_PeerIdentity *peer) { - if (GNUNET_YES != GNUNET_CONTAINER_multihashmap_contains(h->neighbours, &peer->hashPubKey)) - return NULL; - return GNUNET_CONTAINER_multihashmap_get(h->neighbours, &peer->hashPubKey); } -- 2.25.1