]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: Remove unused code 22082/head
authorTiago Melo <tspmelo@gmail.com>
Tue, 5 Jun 2018 19:23:20 +0000 (20:23 +0100)
committerTiago Melo <tmelo@suse.com>
Mon, 11 Jun 2018 09:54:39 +0000 (10:54 +0100)
Signed-off-by: Tiago Melo <tmelo@suse.com>
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-performance-histogram/osd-performance-histogram.component.ts

index c3f06450659fb01959e16dd58732f89437f6c24d..b460e79cfb6ba47d1e1ff317f2a9ddf732d0f74f 100644 (file)
@@ -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);
       });
     });