diff options
author | Thomas Preud'homme <thomasp@graphcore.ai> | 2019-09-28 23:23:21 +0000 |
---|---|---|
committer | Thomas Preud'homme <thomasp@graphcore.ai> | 2019-09-28 23:23:21 +0000 |
commit | bde4613047c5bc6bb1795c1af2d9df06f4829e14 (patch) | |
tree | a10a0aa16e01eb176fb9acd1955e84751ea1e998 | |
parent | cf4b1ad73a427ad2e29d596dccb914340dc5c08f (diff) |
[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
git-svn-id: https://llvm.org/svn/llvm-project/lnt/trunk@373153 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lnt/server/ui/util.py | 7 | ||||
-rw-r--r-- | lnt/server/ui/views.py | 3 |
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. |