aboutsummaryrefslogtreecommitdiff
path: root/src/transport/transport_api.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-12-01 18:55:50 +0000
committerChristian Grothoff <christian@grothoff.org>2010-12-01 18:55:50 +0000
commit3c4d9d3e55788f7e15ad660e8b39160be0616f0a (patch)
treeb2826f6b69357d2d577987c6e579bfdde3fe95c8 /src/transport/transport_api.c
parentc99fe3ca615e6675d690f7b2740ca398c2bccc55 (diff)
downloadgnunet-3c4d9d3e55788f7e15ad660e8b39160be0616f0a.tar.gz
gnunet-3c4d9d3e55788f7e15ad660e8b39160be0616f0a.zip
removing unnecessary check and outdated comment
Diffstat (limited to 'src/transport/transport_api.c')
-rw-r--r--src/transport/transport_api.c4
1 files changed, 0 insertions, 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
401}; 401};
402 402
403 403
404// FIXME: replace with hash map!
405/** 404/**
406 * Get the neighbour list entry for the given peer 405 * Get the neighbour list entry for the given peer
407 * 406 *
@@ -413,9 +412,6 @@ static struct NeighbourList *
413neighbour_find (struct GNUNET_TRANSPORT_Handle *h, 412neighbour_find (struct GNUNET_TRANSPORT_Handle *h,
414 const struct GNUNET_PeerIdentity *peer) 413 const struct GNUNET_PeerIdentity *peer)
415{ 414{
416 if (GNUNET_YES != GNUNET_CONTAINER_multihashmap_contains(h->neighbours, &peer->hashPubKey))
417 return NULL;
418
419 return GNUNET_CONTAINER_multihashmap_get(h->neighbours, &peer->hashPubKey); 415 return GNUNET_CONTAINER_multihashmap_get(h->neighbours, &peer->hashPubKey);
420} 416}
421 417