[LNT] r373153 - [LNT] Remove dead code
Thomas Preud'homme via llvm-commits
llvm-commits at lists.llvm.org
Sat Sep 28 16:23:21 PDT 2019
Author: thopre
Date: Sat Sep 28 16:23:21 2019
New Revision: 373153
URL: http://llvm.org/viewvc/llvm-project?rev=373153&view=rev
Log:
[LNT] Remove dead code
Summary:
Remove 2 blocks of dead code in LNT:
- safediv() method which is not used anywhere
- setting of derive_stat attribute of a MatrixDataRequest which is not
used by anything.
Reviewers: cmatthews, hubert.reinterpretcast, kristof.beyls
Reviewed By: hubert.reinterpretcast
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D68097
Modified:
lnt/trunk/lnt/server/ui/util.py
lnt/trunk/lnt/server/ui/views.py
Modified: lnt/trunk/lnt/server/ui/util.py
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/server/ui/util.py?rev=373153&r1=373152&r2=373153&view=diff
==============================================================================
--- lnt/trunk/lnt/server/ui/util.py (original)
+++ lnt/trunk/lnt/server/ui/util.py Sat Sep 28 16:23:21 2019
@@ -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)
Modified: lnt/trunk/lnt/server/ui/views.py
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/server/ui/views.py?rev=373153&r1=373152&r2=373153&view=diff
==============================================================================
--- lnt/trunk/lnt/server/ui/views.py (original)
+++ lnt/trunk/lnt/server/ui/views.py Sat Sep 28 16:23:21 2019
@@ -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.
More information about the llvm-commits
mailing list