From 0f28dc5e5506970ff92cff5f83f4bb12fa6d7e55 Mon Sep 17 00:00:00 2001 From: blitzmann Date: Sun, 23 Aug 2020 23:17:07 -0400 Subject: [PATCH] Remove the queue stuff for CalibreDB (is no longer used) --- cps/db.py | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/cps/db.py b/cps/db.py index 46e54706..7aba9b78 100644 --- a/cps/db.py +++ b/cps/db.py @@ -338,25 +338,9 @@ class CalibreDB(threading.Thread): threading.Thread.__init__(self) self.engine = None self.session = None - self.queue = None self.log = None self.config = None - def add_queue(self,queue): - self.queue = queue - self.log = logger.create() - - def run(self): - while False: - i = self.queue.get() - if i == 'dummy': - self.queue.task_done() - break - self.queue.task_done() - - def stop(self): - self.queue.put('dummy') - def setup_db(self, config, app_db_path): self.config = config self.dispose()