[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/master] Remove unused chosen_scheduler_type variable.



commit ac3fdb74c20cd3b52e5fdfa19b247b2edff9cb6e
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date:   Fri Sep 22 09:56:54 2017 -0400

    Remove unused chosen_scheduler_type variable.
---
 src/or/scheduler.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/src/or/scheduler.c b/src/or/scheduler.c
index d17d16511..cc0161122 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;

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits