From eb266f198df6531d19cbaa94cee458e6da4a131b Mon Sep 17 00:00:00 2001 From: Vangelis Banos Date: Sun, 24 Sep 2017 13:44:13 +0000 Subject: [PATCH] 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. --- warcprox/dedup.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/warcprox/dedup.py b/warcprox/dedup.py index 7a7a025..59c6040 100644 --- a/warcprox/dedup.py +++ b/warcprox/dedup.py @@ -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)