From: Christian Grothoff Date: Wed, 1 Dec 2010 18:55:50 +0000 (+0000) Subject: removing unnecessary check and outdated comment X-Git-Tag: initial-import-from-subversion-38251~19569 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=3c4d9d3e55788f7e15ad660e8b39160be0616f0a;p=oweals%2Fgnunet.git removing unnecessary check and outdated comment --- 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); }