diff --git a/dht/dhtcore/Node.c b/dht/dhtcore/Node.c index acdd1427e..7a6c5cbf5 100644 --- a/dht/dhtcore/Node.c +++ b/dht/dhtcore/Node.c @@ -29,18 +29,6 @@ bool Node_isAncestorOf(struct Node_Two* ancestor, struct Node_Two* child) } } -void Node_setCost(struct Node_Two* node, uint64_t newCost) -{ - if (newCost != UINT64_MAX) { - Assert_true(Node_getBestParent(node)); - Assert_true(node->address.path < UINT64_MAX); - } else { - Assert_true(!Node_getBestParent(node)); - Assert_true(node->address.path == UINT64_MAX); - } - node->cost_pvt = newCost; -} - void Node_setParentCostAndPath(struct Node_Two* node, struct Node_Link* bestParent, uint64_t cost, diff --git a/dht/dhtcore/Node.h b/dht/dhtcore/Node.h index 8085e0995..b8268e463 100644 --- a/dht/dhtcore/Node.h +++ b/dht/dhtcore/Node.h @@ -135,7 +135,6 @@ static inline uint64_t Node_getCost(struct Node_Two* node) { return node->cost_pvt; } -void Node_setCost(struct Node_Two* node, uint64_t newCost); static inline struct Node_Link* Node_getBestParent(struct Node_Two* node) {