summaryrefslogtreecommitdiff
path: root/webapp.py
diff options
context:
space:
mode:
authorHelmut Grohne <helmut@subdivi.de>2013-07-23 23:26:28 +0200
committerHelmut Grohne <helmut@subdivi.de>2013-07-23 23:26:28 +0200
commitda33f7f323fa9431809e4d93a546e3b234d50406 (patch)
tree21ad1f7398aa608635eb87ae2dbd1ec85022aa5a /webapp.py
parent6206dea43941560a29c9a1105ae3055740ab80aa (diff)
downloaddebian-dedup-da33f7f323fa9431809e4d93a546e3b234d50406.tar.gz
webapp: remove unused function
Diffstat (limited to 'webapp.py')
-rwxr-xr-xwebapp.py21
1 files changed, 0 insertions, 21 deletions
diff --git a/webapp.py b/webapp.py
index 9e23128..6def0b6 100755
--- a/webapp.py
+++ b/webapp.py
@@ -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