tRemove dead code from prior - electrum - Electrum Bitcoin wallet (HTM) git clone https://git.parazyd.org/electrum (DIR) Log (DIR) Files (DIR) Refs (DIR) Submodules --- (DIR) commit 788ab520ea647d4e1c0cbab96b51c75410b9770b (DIR) parent e6020975a51f8f0d9e739d860454b2ade5b80e1f (HTM) Author: Neil Booth <kyuupichan@gmail.com> Date: Sun, 31 Jan 2016 14:48:57 +0900 Remove dead code from prior Diffstat: M lib/daemon.py | 18 ------------------ 1 file changed, 0 insertions(+), 18 deletions(-) --- (DIR) diff --git a/lib/daemon.py b/lib/daemon.py t@@ -33,23 +33,6 @@ from commands import known_commands, Commands from simple_config import SimpleConfig -def lockfile(config): - return os.path.join(config.path, 'daemon') - -def get_daemon(config): - try: - with open(lockfile(config)) as f: - host, port = ast.literal_eval(f.read()) - except: - return - server = jsonrpclib.Server('http://%s:%d' % (host, port)) - # check if daemon is running - try: - server.ping() - return server - except: - pass - class RequestHandler(SimpleJSONRPCRequestHandler): def do_OPTIONS(self): t@@ -63,7 +46,6 @@ class RequestHandler(SimpleJSONRPCRequestHandler): SimpleJSONRPCRequestHandler.end_headers(self) - class Daemon(DaemonThread): def __init__(self, config, server):