Browse Source

remove a never-used smartlist in routerlist.c

svn:r5176
Nick Mathewson 20 years ago
parent
commit
808e584a87
1 changed files with 1 additions and 2 deletions
  1. 1 2
      src/or/routerlist.c

+ 1 - 2
src/or/routerlist.c

@@ -64,7 +64,7 @@ router_reload_networkstatus(void)
 {
 {
   char filename[512];
   char filename[512];
   struct stat st;
   struct stat st;
-  smartlist_t *entries, *bad_names;
+  smartlist_t *entries;
   char *s;
   char *s;
   tor_assert(get_options()->DataDirectory);
   tor_assert(get_options()->DataDirectory);
   if (!networkstatus_list)
   if (!networkstatus_list)
@@ -73,7 +73,6 @@ router_reload_networkstatus(void)
   tor_snprintf(filename,sizeof(filename),"%s/cached-status",
   tor_snprintf(filename,sizeof(filename),"%s/cached-status",
                get_options()->DataDirectory);
                get_options()->DataDirectory);
   entries = tor_listdir(filename);
   entries = tor_listdir(filename);
-  bad_names = smartlist_create();
   SMARTLIST_FOREACH(entries, const char *, fn, {
   SMARTLIST_FOREACH(entries, const char *, fn, {
       char buf[DIGEST_LEN];
       char buf[DIGEST_LEN];
       if (strlen(fn) != HEX_DIGEST_LEN ||
       if (strlen(fn) != HEX_DIGEST_LEN ||