Просмотр исходного кода

fixed jshint errors, dam fever is coming back, time to sleep...

Torkel Ödegaard 12 лет назад
Родитель
Сommit
e3561ce555
1 измененных файлов с 2 добавлено и 11 удалено
  1. 2 11
      src/app/panels/graphite/timeSeries.js

+ 2 - 11
src/app/panels/graphite/timeSeries.js

@@ -1,17 +1,11 @@
 define([
-  'underscore',
-  './interval'
+  'underscore'
 ],
-function (_, Interval) {
+function (_) {
   'use strict';
 
   var ts = {};
 
-  // map compatable parseInt
-  function base10Int(val) {
-    return parseInt(val, 10);
-  }
-
   // trim the ms off of a time, but return it with empty ms.
   function getDatesTime(date) {
     return Math.floor(date.getTime() / 1000)*1000;
@@ -57,9 +51,6 @@ function (_, Interval) {
         if (fillStyle === 'null as zero') {
           currentValue = 0;
         }
-        if (fillStyle === 'null') {
-          // do nothing
-        }
       }
 
       result.push([currentTime * 1000, currentValue]);