Browse Source

Remove more dead code

As everything is in-process now, nothing sends
"network.*" messages.
283
Neil Booth 10 years ago
parent
commit
f9547a194e
  1. 14
      lib/network.py

14
lib/network.py

@ -558,20 +558,6 @@ class Network(util.DaemonThread):
'''Returns true if the request was processed.'''
method, params = request
if method.startswith('network.'):
out = {}
try:
f = getattr(self, method[8:])
out['result'] = f(*params)
except AttributeError:
out['error'] = "unknown method"
except BaseException as e:
out['error'] = str(e)
traceback.print_exc(file=sys.stdout)
self.print_error("network error", str(e))
callback(out)
return True
# This request needs connectivity. If we don't have an
# interface, we cannot process it.
if not self.interface:

Loading…
Cancel
Save