Removing INFO LOG and fixing BUG when scaling
This commit is contained in:
1 parent
be7f12da2a
commit
316a2a8476
1 file changed
-17
-17
@@ -1,7 +1,6 @@
|
||||
function newAAMastersPlottersTradingHistory() {
|
||||
|
||||
const MODULE_NAME = "AAMasters Plotters Trading History";
|
||||
const INFO_LOG = false;
|
||||
const INTENSIVE_LOG = false;
|
||||
const ERROR_LOG = true;
|
||||
const logger = newWebDebugLog();
|
||||
@@ -62,8 +61,6 @@
|
||||
function finalize() {
|
||||
try {
|
||||
|
||||
if (INFO_LOG === true) { logger.write("[INFO] finalize -> Entering function."); }
|
||||
|
||||
/* Stop listening to the necesary events. */
|
||||
|
||||
viewPort.eventHandler.stopListening(offsetChangedEventSubscriptionId);
|
||||
@@ -90,8 +87,6 @@
|
||||
|
||||
try {
|
||||
|
||||
if (INFO_LOG === true) { logger.write("[INFO] initialize -> Entering function."); }
|
||||
|
||||
datetime = pDatetime;
|
||||
timePeriod = pTimePeriod;
|
||||
|
||||
@@ -121,8 +116,6 @@
|
||||
|
||||
try {
|
||||
|
||||
if (INFO_LOG === true) { logger.write("[INFO] getContainer -> Entering function."); }
|
||||
|
||||
let container;
|
||||
|
||||
/* First we check if this point is inside this space. */
|
||||
@@ -154,8 +147,6 @@
|
||||
|
||||
try {
|
||||
|
||||
if (INFO_LOG === true) { logger.write("[INFO] setTimePeriod -> Entering function."); }
|
||||
|
||||
timePeriod = pTimePeriod;
|
||||
|
||||
recalculate();
|
||||
@@ -170,8 +161,6 @@
|
||||
|
||||
try {
|
||||
|
||||
if (INFO_LOG === true) { logger.write("[INFO] setDatetime -> Entering function."); }
|
||||
|
||||
datetime = newDatetime;
|
||||
|
||||
} catch (err) {
|
||||
@@ -193,8 +182,6 @@
|
||||
|
||||
try {
|
||||
|
||||
if (INFO_LOG === true) { logger.write("[INFO] recalculate -> Entering function."); }
|
||||
|
||||
if (fileSequence === undefined) { return; }
|
||||
|
||||
/*
|
||||
@@ -423,8 +410,6 @@
|
||||
|
||||
try {
|
||||
|
||||
if (INFO_LOG === true) { logger.write("[INFO] recalculateScale -> Entering function."); }
|
||||
|
||||
if (fileSequence === undefined) { return; } // We need the market file to be loaded to make the calculation.
|
||||
|
||||
if (timeLineCoordinateSystem.maxValue > 0) { return; } // Already calculated.
|
||||
@@ -451,8 +436,6 @@
|
||||
|
||||
try {
|
||||
|
||||
if (INFO_LOG === true) { logger.write("[INFO] recalculateScale -> getMaxRate > Entering function."); }
|
||||
|
||||
let maxValue = 0;
|
||||
|
||||
let maxSequence = fileSequence.getFilesLoaded();
|
||||
|
||||
Reference in new issue
Block a user