aboutsummaryrefslogtreecommitdiff
path: root/lnt/server/ui
diff options
context:
space:
mode:
Diffstat (limited to 'lnt/server/ui')
-rw-r--r--lnt/server/ui/util.py7
-rw-r--r--lnt/server/ui/views.py3
2 files changed, 0 insertions, 10 deletions
diff --git a/lnt/server/ui/util.py b/lnt/server/ui/util.py
index bd759ce..4919e99 100644
--- a/lnt/server/ui/util.py
+++ b/lnt/server/ui/util.py
@@ -12,13 +12,6 @@ def toColorString(col):
return "#%02x%02x%02x" % (r, g, b)
-def safediv(a, b, default=None):
- try:
- return a / b
- except ZeroDivisionError:
- return default
-
-
def makeDarkerColor(h):
return makeDarkColor(h, 0.50)
diff --git a/lnt/server/ui/views.py b/lnt/server/ui/views.py
index 40a7786..d64a774 100644
--- a/lnt/server/ui/views.py
+++ b/lnt/server/ui/views.py
@@ -1771,9 +1771,6 @@ def v4_matrix():
req.samples[s[1]].append(s[0])
all_orders.add(s[1])
order_to_id[s[1]] = s[2]
- req.derive_stat = {}
- for order, samples in req.samples.items():
- req.derive_stat[order] = mean(samples)
if not all_orders:
abort(404, "No data found.")
# Now grab the baseline data.