aboutsummaryrefslogtreecommitdiff
path: root/src/util/scheduler.c
diff options
context:
space:
mode:
authorlurchi <lurchi@strangeplace.net>2018-01-15 00:32:34 +0100
committerlurchi <lurchi@strangeplace.net>2018-01-15 00:32:34 +0100
commitd5dd6f498b5966aef20e7508263420316cd8a949 (patch)
tree14d36f002a98129fabf08946e53292476789e652 /src/util/scheduler.c
parentd45ca3c7ad133f6c23d8db18fce9421c57c8eafe (diff)
downloadgnunet-d5dd6f498b5966aef20e7508263420316cd8a949.tar.gz
gnunet-d5dd6f498b5966aef20e7508263420316cd8a949.zip
remove unused variables
Diffstat (limited to 'src/util/scheduler.c')
-rw-r--r--src/util/scheduler.c22
1 files changed, 0 insertions, 22 deletions
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
@@ -135,18 +135,6 @@ struct GNUNET_SCHEDULER_Task
135 unsigned int fds_len; 135 unsigned int fds_len;
136 136
137 /** 137 /**
138 * if this task is related to multiple FDs this array contains
139 * all FdInfo structs that were marked as ready by calling
140 * #GNUNET_SCHEDULER_task_ready
141 */
142 struct GNUNET_SCHEDULER_FdInfo *ready_fds;
143
144 /**
145 * Size of the @e ready_fds array
146 */
147 unsigned int ready_fds_len;
148
149 /**
150 * Do we own the network and file handles referenced by the FdInfo 138 * Do we own the network and file handles referenced by the FdInfo
151 * structs in the fds array. This will only be GNUNET_YES if the 139 * structs in the fds array. This will only be GNUNET_YES if the
152 * task was created by the #GNUNET_SCHEDULER_add_select function. 140 * task was created by the #GNUNET_SCHEDULER_add_select function.
@@ -347,11 +335,6 @@ static struct GNUNET_SCHEDULER_Task *ready_tail[GNUNET_SCHEDULER_PRIORITY_COUNT]
347static unsigned int ready_count; 335static unsigned int ready_count;
348 336
349/** 337/**
350 * How many tasks have we run so far?
351 */
352static unsigned long long tasks_run;
353
354/**
355 * Priority of the task running right now. Only 338 * Priority of the task running right now. Only
356 * valid while a task is running. 339 * valid while a task is running.
357 */ 340 */
@@ -561,10 +544,6 @@ destroy_task (struct GNUNET_SCHEDULER_Task *t)
561 { 544 {
562 GNUNET_array_grow (t->fds, t->fds_len, 0); 545 GNUNET_array_grow (t->fds, t->fds_len, 0);
563 } 546 }
564 if (t->ready_fds_len > 0)
565 {
566 GNUNET_array_grow (t->ready_fds, t->ready_fds_len, 0);
567 }
568#if EXECINFO 547#if EXECINFO
569 GNUNET_free (t->backtrace_strings); 548 GNUNET_free (t->backtrace_strings);
570#endif 549#endif
@@ -2020,7 +1999,6 @@ GNUNET_SCHEDULER_run_from_driver (struct GNUNET_SCHEDULER_Handle *sh)
2020 active_task = NULL; 1999 active_task = NULL;
2021 dump_backtrace (pos); 2000 dump_backtrace (pos);
2022 destroy_task (pos); 2001 destroy_task (pos);
2023 tasks_run++;
2024 } 2002 }
2025 shutdown_if_no_lifeness (); 2003 shutdown_if_no_lifeness ();
2026 if (0 == ready_count) 2004 if (0 == ready_count)