[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnunet] branch master updated: remove unused variables
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnunet] branch master updated: remove unused variables |
Date: |
Mon, 15 Jan 2018 00:32:55 +0100 |
This is an automated email from the git hooks/post-receive script.
lurchi pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new d5dd6f498 remove unused variables
d5dd6f498 is described below
commit d5dd6f498b5966aef20e7508263420316cd8a949
Author: lurchi <address@hidden>
AuthorDate: Mon Jan 15 00:32:34 2018 +0100
remove unused variables
---
src/util/scheduler.c | 22 ----------------------
1 file changed, 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
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
* 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]
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)
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [gnunet] branch master updated: remove unused variables,
gnunet <=