diff options
author | Julius Bünger <buenger@mytum.de> | 2016-05-22 07:12:48 +0000 |
---|---|---|
committer | Julius Bünger <buenger@mytum.de> | 2016-05-22 07:12:48 +0000 |
commit | e5696a0055e581f528ae689fa1b365db3e75254c (patch) | |
tree | f67c434cc1e6cd81e9051b173d9236bcf410e727 /src/rps | |
parent | e321090a6ab5ac7228bf71983db0ae86af91ea99 (diff) | |
download | gnunet-e5696a0055e581f528ae689fa1b365db3e75254c.tar.gz gnunet-e5696a0055e581f528ae689fa1b365db3e75254c.zip |
-rps: removing unused counter
Diffstat (limited to 'src/rps')
-rw-r--r-- | src/rps/gnunet-service-rps.c | 11 |
1 files changed, 0 insertions, 11 deletions
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]; | |||
252 | */ | 252 | */ |
253 | static struct GNUNET_TIME_Relative request_rate; | 253 | static struct GNUNET_TIME_Relative request_rate; |
254 | 254 | ||
255 | /** | ||
256 | * Number of history update tasks. | ||
257 | */ | ||
258 | static uint32_t num_hist_update_tasks; | ||
259 | |||
260 | 255 | ||
261 | #ifdef ENABLE_MALICIOUS | 256 | #ifdef ENABLE_MALICIOUS |
262 | /** | 257 | /** |
@@ -458,8 +453,6 @@ hist_update (void *cls, | |||
458 | "+%s\t(hist)", | 453 | "+%s\t(hist)", |
459 | GNUNET_i2s_full (ids)); | 454 | GNUNET_i2s_full (ids)); |
460 | } | 455 | } |
461 | if (0 < num_hist_update_tasks) | ||
462 | num_hist_update_tasks--; | ||
463 | } | 456 | } |
464 | 457 | ||
465 | 458 | ||
@@ -1919,7 +1912,6 @@ do_round (void *cls) | |||
1919 | hist_update, | 1912 | hist_update, |
1920 | NULL, | 1913 | NULL, |
1921 | final_size - second_border); | 1914 | final_size - second_border); |
1922 | num_hist_update_tasks = final_size - second_border; | ||
1923 | // TODO change the peer_flags accordingly | 1915 | // TODO change the peer_flags accordingly |
1924 | 1916 | ||
1925 | for (i = 0; i < View_size (); i++) | 1917 | for (i = 0; i < View_size (); i++) |
@@ -2333,9 +2325,6 @@ run (void *cls, | |||
2333 | pull_map = CustomPeerMap_create (4); | 2325 | pull_map = CustomPeerMap_create (4); |
2334 | 2326 | ||
2335 | 2327 | ||
2336 | num_hist_update_tasks = 0; | ||
2337 | |||
2338 | |||
2339 | LOG (GNUNET_ERROR_TYPE_DEBUG, "Requesting peers from CADET\n"); | 2328 | LOG (GNUNET_ERROR_TYPE_DEBUG, "Requesting peers from CADET\n"); |
2340 | GNUNET_CADET_get_peers (cadet_handle, &init_peer_cb, NULL); | 2329 | GNUNET_CADET_get_peers (cadet_handle, &init_peer_cb, NULL); |
2341 | // TODO send push/pull to each of those peers? | 2330 | // TODO send push/pull to each of those peers? |