Browse Source

Remove DIR_SPOOL_CACHED_DIR: Nothing uses it.

Nick Mathewson 7 years ago
parent
commit
8587f663ee
2 changed files with 1 additions and 3 deletions
  1. 0 2
      src/or/dirserv.c
  2. 1 1
      src/or/or.h

+ 0 - 2
src/or/dirserv.c

@@ -3754,8 +3754,6 @@ connection_dirserv_flushed_some(dir_connection_t *conn)
       return connection_dirserv_add_servers_to_outbuf(conn);
     case DIR_SPOOL_MICRODESC:
       return connection_dirserv_add_microdescs_to_outbuf(conn);
-    case DIR_SPOOL_CACHED_DIR:
-      return connection_dirserv_add_dir_bytes_to_outbuf(conn);
     case DIR_SPOOL_NETWORKSTATUS:
       return connection_dirserv_add_networkstatus_bytes_to_outbuf(conn);
     case DIR_SPOOL_NONE:

+ 1 - 1
src/or/or.h

@@ -1735,7 +1735,7 @@ typedef struct entry_connection_t {
 typedef enum {
     DIR_SPOOL_NONE=0, DIR_SPOOL_SERVER_BY_DIGEST, DIR_SPOOL_SERVER_BY_FP,
     DIR_SPOOL_EXTRA_BY_DIGEST, DIR_SPOOL_EXTRA_BY_FP,
-    DIR_SPOOL_CACHED_DIR, DIR_SPOOL_NETWORKSTATUS,
+    DIR_SPOOL_NETWORKSTATUS,
     DIR_SPOOL_MICRODESC, /* NOTE: if we add another entry, add another bit. */
 } dir_spool_source_t;
 #define dir_spool_source_bitfield_t ENUM_BF(dir_spool_source_t)