removing unnecessary check and outdated comment
authorChristian Grothoff <christian@grothoff.org>
Wed, 1 Dec 2010 18:55:50 +0000 (18:55 +0000)
committerChristian Grothoff <christian@grothoff.org>
Wed, 1 Dec 2010 18:55:50 +0000 (18:55 +0000)
src/transport/transport_api.c

index 110dfac41f28fdb34614948545ea55a47539c946..1dbf8cb101409c8cf55b19879f9ebf65a9ca0abc 100644 (file)
@@ -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);
 }