Remove redundant stop() & sync() dedup methods

Similarly with my previous commits, these methods do nothing.

I think that the reason they are here is because the author uses the
same style in other places in the code (e.g.
``warcprox.stats.StatsDb``). Similar methods exist there.
This commit is contained in:
Vangelis Banos 2017-09-24 13:44:13 +00:00
parent d035147e3e
commit eb266f198d

View File

@ -55,12 +55,6 @@ class DedupDb(object):
conn.commit()
conn.close()
def stop(self):
pass
def sync(self):
pass
def save(self, digest_key, response_record, bucket=""):
record_id = response_record.get_header(warctools.WarcRecord.ID).decode('latin1')
url = response_record.get_header(warctools.WarcRecord.URL).decode('latin1')
@ -148,12 +142,6 @@ class RethinkDedupDb:
def start(self):
pass
def stop(self):
pass
def sync(self):
pass
def save(self, digest_key, response_record, bucket=""):
k = digest_key.decode("utf-8") if isinstance(digest_key, bytes) else digest_key
k = "{}|{}".format(k, bucket)