[PATCH] D68097: [LNT] Remove dead code
Thomas Preud'homme via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Sep 28 16:22:55 PDT 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rL373153: [LNT] Remove dead code (authored by thopre, committed by ).
Herald added a project: LLVM.
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D68097/new/
https://reviews.llvm.org/D68097
Files:
lnt/trunk/lnt/server/ui/util.py
lnt/trunk/lnt/server/ui/views.py
Index: lnt/trunk/lnt/server/ui/views.py
===================================================================
--- lnt/trunk/lnt/server/ui/views.py
+++ lnt/trunk/lnt/server/ui/views.py
@@ -1771,9 +1771,6 @@
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.
Index: lnt/trunk/lnt/server/ui/util.py
===================================================================
--- lnt/trunk/lnt/server/ui/util.py
+++ lnt/trunk/lnt/server/ui/util.py
@@ -12,13 +12,6 @@
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)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D68097.222308.patch
Type: text/x-patch
Size: 980 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190928/78eaf3a7/attachment.bin>
More information about the llvm-commits
mailing list