diff options
author | Helmut Grohne <helmut@subdivi.de> | 2013-07-23 23:26:28 +0200 |
---|---|---|
committer | Helmut Grohne <helmut@subdivi.de> | 2013-07-23 23:26:28 +0200 |
commit | da33f7f323fa9431809e4d93a546e3b234d50406 (patch) | |
tree | 21ad1f7398aa608635eb87ae2dbd1ec85022aa5a | |
parent | 6206dea43941560a29c9a1105ae3055740ab80aa (diff) | |
download | debian-dedup-da33f7f323fa9431809e4d93a546e3b234d50406.tar.gz |
webapp: remove unused function
-rwxr-xr-x | webapp.py | 21 |
1 files changed, 0 insertions, 21 deletions
@@ -193,27 +193,6 @@ def html_response(unicode_iterator, max_age=24 * 60 * 60): resp.expires = datetime.datetime.now() + datetime.timedelta(seconds=max_age) return resp -def generate_shared(rows): - """internal helper from show_detail""" - entry = None - for filename1, size1, func1, filename2, size2, func2, hashvalue in rows: - funccomb = (func1, func2) - if funccomb not in hash_functions: - continue - if entry and (entry["filename1"] != filename1 or - entry["filename2"] != filename2): - yield entry - entry = None - if entry: - funcdict = entry["functions"] - else: - funcdict = dict() - entry = dict(filename1=filename1, filename2=filename2, size1=size1, - size2=size2, functions=funcdict) - funcdict[funccomb] = hashvalue - if entry: - yield entry - class Application(object): def __init__(self, db): self.db = db |