From 084ad0a50940756e74fa391c4102c2706bb03cae Mon Sep 17 00:00:00 2001 From: Tiago Melo Date: Tue, 5 Jun 2018 20:23:20 +0100 Subject: [PATCH] mgr/dashboard: Remove unused code Signed-off-by: Tiago Melo --- .../osd-performance-histogram.component.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-performance-histogram/osd-performance-histogram.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-performance-histogram/osd-performance-histogram.component.ts index c3f06450659fb..b460e79cfb6ba 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-performance-histogram/osd-performance-histogram.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-performance-histogram/osd-performance-histogram.component.ts @@ -31,7 +31,6 @@ export class OsdPerformanceHistogramComponent implements OnChanges { if (!this.histogram) { return; } - let sum = 0; let max = 0; _.each(this.histogram.values, (row, i) => { @@ -42,7 +41,6 @@ export class OsdPerformanceHistogramComponent implements OnChanges { } else { val = col; } - sum += val; max = Math.max(max, val); }); }); -- 2.39.5