From f9547a194e620458b17e8fee3ca12ca038d2baf5 Mon Sep 17 00:00:00 2001 From: Neil Booth Date: Sat, 12 Sep 2015 11:18:11 +0900 Subject: [PATCH] Remove more dead code As everything is in-process now, nothing sends "network.*" messages. --- lib/network.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/lib/network.py b/lib/network.py index 8cc300af..f7096806 100644 --- 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: