diff --git a/toxcore/DHT.c b/toxcore/DHT.c index ae823302..6060a9eb 100644 --- a/toxcore/DHT.c +++ b/toxcore/DHT.c @@ -2422,8 +2422,6 @@ static int dht_load_state_callback(void *outer, const uint8_t *data, uint32_t le int num = unpack_nodes(dht->loaded_nodes_list, MAX_SAVED_DHT_NODES, NULL, data, length, 0); - Node_format *client_list = (Node_format *)data; - if (num > 0) { dht->loaded_num_nodes = num; } else {