From e3561ce5557ae2a4ff9aa6bccf19b1a161f7c92c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Wed, 5 Feb 2014 13:35:32 +0100 Subject: [PATCH] fixed jshint errors, dam fever is coming back, time to sleep... --- src/app/panels/graphite/timeSeries.js | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/src/app/panels/graphite/timeSeries.js b/src/app/panels/graphite/timeSeries.js index 93c9eb87842..02eec94e7fb 100644 --- a/src/app/panels/graphite/timeSeries.js +++ b/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]);