From: Julius Bünger Date: Sun, 22 May 2016 07:12:48 +0000 (+0000) Subject: -rps: removing unused counter X-Git-Tag: initial-import-from-subversion-38251~858 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e5696a0055e581f528ae689fa1b365db3e75254c;p=oweals%2Fgnunet.git -rps: removing unused counter --- diff --git a/src/rps/gnunet-service-rps.c b/src/rps/gnunet-service-rps.c index 69082adac..b9e472fda 100644 --- a/src/rps/gnunet-service-rps.c +++ b/src/rps/gnunet-service-rps.c @@ -252,11 +252,6 @@ static struct GNUNET_TIME_Relative request_deltas[REQUEST_DELTAS_SIZE]; */ static struct GNUNET_TIME_Relative request_rate; -/** - * Number of history update tasks. - */ -static uint32_t num_hist_update_tasks; - #ifdef ENABLE_MALICIOUS /** @@ -458,8 +453,6 @@ hist_update (void *cls, "+%s\t(hist)", GNUNET_i2s_full (ids)); } - if (0 < num_hist_update_tasks) - num_hist_update_tasks--; } @@ -1919,7 +1912,6 @@ do_round (void *cls) hist_update, NULL, final_size - second_border); - num_hist_update_tasks = final_size - second_border; // TODO change the peer_flags accordingly for (i = 0; i < View_size (); i++) @@ -2333,9 +2325,6 @@ run (void *cls, pull_map = CustomPeerMap_create (4); - num_hist_update_tasks = 0; - - LOG (GNUNET_ERROR_TYPE_DEBUG, "Requesting peers from CADET\n"); GNUNET_CADET_get_peers (cadet_handle, &init_peer_cb, NULL); // TODO send push/pull to each of those peers?