rip out hid_serv_acting_as_directory()
commit53902963383e1babfccb8a4ffc7ed4e8accf2214
authorRoger Dingledine <arma@torproject.org>
Fri, 11 Mar 2016 15:45:03 +0000 (11 10:45 -0500)
committerRoger Dingledine <arma@torproject.org>
Fri, 11 Mar 2016 15:45:03 +0000 (11 10:45 -0500)
treefb11ab029e3b215105ca9bcf606328e3b0fcbc6e
parente167910fce2b83d9de3a252cdf02cabdafced14b
rip out hid_serv_acting_as_directory()

When we made HidServDirectoryV2 always 1, we removed the situation
where a relay could choose not to be an HSDir. Now simplify the
rest of the code to reflect this decision.

(We have to remove two apparently unrelated free() calls in the unit
tests, since they used to free stuff that we created as a side effect
of calling router_get_my_routerinfo(), and now we no longer call that.)
src/or/directory.c
src/or/rendcache.c
src/or/rendcache.h
src/or/rendcommon.c
src/or/rendcommon.h
src/test/test_dir_handle_get.c
src/test/test_rendcache.c