From: Tiago Melo Date: Tue, 5 Jun 2018 19:23:20 +0000 (+0100) Subject: mgr/dashboard: Remove unused code X-Git-Tag: v14.0.1~1128^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F22082%2Fhead;p=ceph.git mgr/dashboard: Remove unused code Signed-off-by: Tiago Melo --- 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 c3f06450659f..b460e79cfb6b 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); }); });