mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-24 07:06:41 +00:00
remove unused code
This commit is contained in:
parent
f0c3db0e5a
commit
c2946cc2e3
@ -450,16 +450,6 @@ def _make_tcp_handler():
|
|||||||
return default()
|
return default()
|
||||||
|
|
||||||
|
|
||||||
# XXX shouldn't need this
|
|
||||||
def _make_tor_handler(tor_provider):
|
|
||||||
return tor_provider.get_tor_handler()
|
|
||||||
|
|
||||||
|
|
||||||
# XXX shouldn't need this
|
|
||||||
def _make_i2p_handler(i2p_provider):
|
|
||||||
return i2p_provider.get_i2p_handler()
|
|
||||||
|
|
||||||
|
|
||||||
def create_connection_handlers(reactor, config, i2p_provider, tor_provider):
|
def create_connection_handlers(reactor, config, i2p_provider, tor_provider):
|
||||||
"""
|
"""
|
||||||
:returns: 2-tuple of default_connection_handlers, foolscap_connection_handlers
|
:returns: 2-tuple of default_connection_handlers, foolscap_connection_handlers
|
||||||
@ -470,8 +460,8 @@ def create_connection_handlers(reactor, config, i2p_provider, tor_provider):
|
|||||||
# create that handler, so hints which want it will be ignored.
|
# create that handler, so hints which want it will be ignored.
|
||||||
handlers = foolscap_connection_handlers = {
|
handlers = foolscap_connection_handlers = {
|
||||||
"tcp": _make_tcp_handler(),
|
"tcp": _make_tcp_handler(),
|
||||||
"tor": _make_tor_handler(tor_provider),
|
"tor": tor_provider.get_tor_handler(),
|
||||||
"i2p": _make_i2p_handler(i2p_provider),
|
"i2p": i2p_provider.get_i2p_handler(),
|
||||||
}
|
}
|
||||||
log.msg(
|
log.msg(
|
||||||
format="built Foolscap connection handlers for: %(known_handlers)s",
|
format="built Foolscap connection handlers for: %(known_handlers)s",
|
||||||
|
Loading…
Reference in New Issue
Block a user