aboutsummaryrefslogtreecommitdiff
path: root/src/or/scheduler.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-09-22 09:56:54 -0400
committerNick Mathewson <nickm@torproject.org>2017-09-22 09:56:54 -0400
commitac3fdb74c20cd3b52e5fdfa19b247b2edff9cb6e (patch)
tree62c8f6d611e08139768501d7101605a6aaa1f3e4 /src/or/scheduler.c
parent122eab78d988728f2c71b4fdcc98e996409ff4b2 (diff)
downloadtor-ac3fdb74c20cd3b52e5fdfa19b247b2edff9cb6e.tar.gz
tor-ac3fdb74c20cd3b52e5fdfa19b247b2edff9cb6e.zip
Remove unused chosen_scheduler_type variable.
Diffstat (limited to 'src/or/scheduler.c')
-rw-r--r--src/or/scheduler.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/or/scheduler.c b/src/or/scheduler.c
index d17d165112..cc01611226 100644
--- a/src/or/scheduler.c
+++ b/src/or/scheduler.c
@@ -227,7 +227,6 @@ scheduler_evt_callback(evutil_socket_t fd, short events, void *arg)
static void
select_scheduler(void)
{
- const char *chosen_sched_type = NULL;
scheduler_t *new_scheduler = NULL;
#ifdef TOR_UNIT_TESTS
@@ -246,7 +245,6 @@ select_scheduler(void)
switch (*type) {
case SCHEDULER_VANILLA:
new_scheduler = get_vanilla_scheduler();
- chosen_sched_type = "Vanilla";
goto end;
case SCHEDULER_KIST:
if (!scheduler_can_use_kist()) {
@@ -264,11 +262,9 @@ select_scheduler(void)
continue;
}
new_scheduler = get_kist_scheduler();
- chosen_sched_type = "KIST";
scheduler_kist_set_full_mode();
goto end;
case SCHEDULER_KIST_LITE:
- chosen_sched_type = "KISTLite";
new_scheduler = get_kist_scheduler();
scheduler_kist_set_lite_mode();
goto end;