From ac3fdb74c20cd3b52e5fdfa19b247b2edff9cb6e Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Fri, 22 Sep 2017 09:56:54 -0400 Subject: Remove unused chosen_scheduler_type variable. --- src/or/scheduler.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src') 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; -- cgit v1.2.3-54-g00ecf