mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-23 17:47:31 +00:00
Remove dead code from prior
This commit is contained in:
parent
e6020975a5
commit
788ab520ea
1 changed files with 0 additions and 18 deletions
|
@ -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):
|
||||
|
@ -63,7 +46,6 @@ class RequestHandler(SimpleJSONRPCRequestHandler):
|
|||
SimpleJSONRPCRequestHandler.end_headers(self)
|
||||
|
||||
|
||||
|
||||
class Daemon(DaemonThread):
|
||||
|
||||
def __init__(self, config, server):
|
||||
|
|
Loading…
Add table
Reference in a new issue