]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Remove DIR_SPOOL_CACHED_DIR: Nothing uses it.
authorNick Mathewson <nickm@torproject.org>
Mon, 13 Mar 2017 12:02:25 +0000 (08:02 -0400)
committerNick Mathewson <nickm@torproject.org>
Mon, 13 Mar 2017 12:02:25 +0000 (08:02 -0400)
src/or/dirserv.c
src/or/or.h

index f01668adcbbde481295ba429225d0298897dfbdb..74617ffc2666bbd6ef5e49b9513a7c86d7c1ba0e 100644 (file)
@@ -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:
index 0e2dc2401ba03a6e79ce6181edbd52f22e430d17..dee8b8567473b2b972c3d62beeceee97757d2a91 100644 (file)
@@ -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)