From: lurchi Date: Sun, 14 Jan 2018 23:32:34 +0000 (+0100) Subject: remove unused variables X-Git-Tag: v0.11.0pre66~249^2~3 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d5dd6f498b5966aef20e7508263420316cd8a949;p=oweals%2Fgnunet.git remove unused variables --- diff --git a/src/util/scheduler.c b/src/util/scheduler.c index 279a4ed02..e92405a96 100644 --- a/src/util/scheduler.c +++ b/src/util/scheduler.c @@ -134,18 +134,6 @@ struct GNUNET_SCHEDULER_Task */ unsigned int fds_len; - /** - * if this task is related to multiple FDs this array contains - * all FdInfo structs that were marked as ready by calling - * #GNUNET_SCHEDULER_task_ready - */ - struct GNUNET_SCHEDULER_FdInfo *ready_fds; - - /** - * Size of the @e ready_fds array - */ - unsigned int ready_fds_len; - /** * Do we own the network and file handles referenced by the FdInfo * structs in the fds array. This will only be GNUNET_YES if the @@ -346,11 +334,6 @@ static struct GNUNET_SCHEDULER_Task *ready_tail[GNUNET_SCHEDULER_PRIORITY_COUNT] */ static unsigned int ready_count; -/** - * How many tasks have we run so far? - */ -static unsigned long long tasks_run; - /** * Priority of the task running right now. Only * valid while a task is running. @@ -561,10 +544,6 @@ destroy_task (struct GNUNET_SCHEDULER_Task *t) { GNUNET_array_grow (t->fds, t->fds_len, 0); } - if (t->ready_fds_len > 0) - { - GNUNET_array_grow (t->ready_fds, t->ready_fds_len, 0); - } #if EXECINFO GNUNET_free (t->backtrace_strings); #endif @@ -2020,7 +1999,6 @@ GNUNET_SCHEDULER_run_from_driver (struct GNUNET_SCHEDULER_Handle *sh) active_task = NULL; dump_backtrace (pos); destroy_task (pos); - tasks_run++; } shutdown_if_no_lifeness (); if (0 == ready_count)