-rps: removing unused counter
authorJulius Bünger <buenger@mytum.de>
Sun, 22 May 2016 07:12:48 +0000 (07:12 +0000)
committerJulius Bünger <buenger@mytum.de>
Sun, 22 May 2016 07:12:48 +0000 (07:12 +0000)
src/rps/gnunet-service-rps.c

index 69082adac6f0b589267f037f4363008dae42dab1..b9e472fdab88c47d3b08c1c86ae5d8b3dab5eb04 100644 (file)
@@ -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?