From 02f519adf675edf713f1fadbe04260ee9b4dd335 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Fri, 31 Jan 2020 20:16:23 +0100 Subject: [PATCH] cleaning --- BollingerBands.js | 31 ------------------------------- 1 file changed, 31 deletions(-) diff --git a/BollingerBands.js b/BollingerBands.js index dda60f55c..1cc42b098 100644 --- a/BollingerBands.js +++ b/BollingerBands.js @@ -19,7 +19,6 @@ setDatetime: setDatetime, setCoordinateSystem: setCoordinateSystem, draw: draw, - recalculateScale: recalculateScale, /* Events declared outside the plotter. */ @@ -457,36 +456,6 @@ } } - function recalculateScale() { - - try { - - if (coordinateSystem.maxValue > 0) { return; } // Already calculated. - - let minValue = { - x: MIN_PLOTABLE_DATE.valueOf(), - y: 0 - }; - - let maxValue = { - x: MAX_PLOTABLE_DATE.valueOf(), - y: nextPorwerOf10(MAX_DEFAULT_RATE_SCALE_VALUE) / 4 // TODO: This 4 is temporary - }; - - - coordinateSystem.initialize( - minValue, - maxValue, - thisObject.container.frame.width, - thisObject.container.frame.height - ); - - } catch (err) { - - if (ERROR_LOG === true) { logger.write("[ERROR] recalculateScale -> err = " + err.stack); } - } - } - function plotChart() { try {