commit f9547a194e620458b17e8fee3ca12ca038d2baf5
parent fe2e731a709307044a33d63a88985ffcd121a87f
Author: Neil Booth <kyuupichan@gmail.com>
Date: Sat, 12 Sep 2015 11:18:11 +0900
Remove more dead code
As everything is in-process now, nothing sends
"network.*" messages.
Diffstat:
1 file changed, 0 insertions(+), 14 deletions(-)
diff --git a/lib/network.py b/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: