Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Kill unused code.
[simgrid.git] / examples / deprecated / msg / dht-kademlia / routing_table.c
index 68d2661..afb1455 100644 (file)
@@ -35,13 +35,6 @@ void routing_table_free(routing_table_t table)
   xbt_free(table);
 }
 
-/** Returns if the routing table contains the id. */
-unsigned int routing_table_contains(routing_table_t table, unsigned int node_id)
-{
-  bucket_t bucket = routing_table_find_bucket(table, node_id);
-  return bucket_contains(bucket, node_id);
-}
-
 /**@brief prints the routing table, to debug stuff. */
 void routing_table_print(const_routing_table_t table)
 {
@@ -75,12 +68,6 @@ unsigned int bucket_find_id(const_bucket_t bucket, unsigned int id)
   return -1;
 }
 
-/** Returns if the bucket contains an identifier.  */
-unsigned int bucket_contains(const_bucket_t bucket, unsigned int id)
-{
-  return xbt_dynar_member(bucket->nodes, &id);
-}
-
 /** @brief Finds the corresponding bucket in a routing table for a given identifier
   * @param table the routing table
   * @param id the identifier