From 328923cbb24b576140f51c19f24fe3338a16578a Mon Sep 17 00:00:00 2001 From: Matthieu Baumann Date: Fri, 22 Mar 2024 15:14:09 +0100 Subject: [PATCH] remove some console log --- src/js/FiniteStateMachine/CircleSelect.js | 1 - src/js/HiPSProperties.js | 4 ++-- src/js/View.js | 1 - src/js/gui/Widgets/Selector.js | 1 - src/js/libs/samp.js | 5 ----- src/js/vo/Datalink.js | 1 - 6 files changed, 2 insertions(+), 11 deletions(-) diff --git a/src/js/FiniteStateMachine/CircleSelect.js b/src/js/FiniteStateMachine/CircleSelect.js index 13b2e7f4c..4a2479e8f 100644 --- a/src/js/FiniteStateMachine/CircleSelect.js +++ b/src/js/FiniteStateMachine/CircleSelect.js @@ -119,7 +119,6 @@ export class CircleSelect extends FSM { // TODO: remove these modes in the future view.aladin.showReticle(true) view.setCursor('default'); - console.log("end select", view) view.setMode(View.PAN) view.requestRedraw(); diff --git a/src/js/HiPSProperties.js b/src/js/HiPSProperties.js index 16d0d1bc5..78a1cf988 100644 --- a/src/js/HiPSProperties.js +++ b/src/js/HiPSProperties.js @@ -199,7 +199,7 @@ HiPSProperties.getFasterMirrorUrl = function (metadata, currUrl) { return r1.duration - r2.duration; }); - console.log(validResponses) + //console.log(validResponses) let newUrlResp; if (validResponses.length >= 2) { @@ -229,7 +229,7 @@ HiPSProperties.getFasterMirrorUrl = function (metadata, currUrl) { urlChosen = newUrlResp.baseUrl; } - console.log('curr url', currUrlResp, ', new ', newUrlResp) + //console.log('curr url', currUrlResp, ', new ', newUrlResp) urlChosen = Utils.fixURLForHTTPS(urlChosen) return urlChosen; diff --git a/src/js/View.js b/src/js/View.js index 4f34717ed..29d118759 100644 --- a/src/js/View.js +++ b/src/js/View.js @@ -353,7 +353,6 @@ export let View = (function () { var computedWidth = parseFloat(window.getComputedStyle(this.aladinDiv).width) || 1.0; var computedHeight = parseFloat(window.getComputedStyle(this.aladinDiv).height) || 1.0; - console.log(this.height, computedHeight) this.width = Math.max(computedWidth, 1); this.height = Math.max(computedHeight, 1); // this prevents many problems when div size is equal to 0 diff --git a/src/js/gui/Widgets/Selector.js b/src/js/gui/Widgets/Selector.js index c81541a14..c9aa76bd9 100644 --- a/src/js/gui/Widgets/Selector.js +++ b/src/js/gui/Widgets/Selector.js @@ -76,7 +76,6 @@ export class SelectorButton extends DOMElement { continue; } let optSelect = this.options[id]; - console.log(optSelect) menuOptions.push({ label: new ActionButton(optSelect), diff --git a/src/js/libs/samp.js b/src/js/libs/samp.js index 9c3f5f64d..67b17c20f 100644 --- a/src/js/libs/samp.js +++ b/src/js/libs/samp.js @@ -992,8 +992,6 @@ export let samp = (function() { } }; ClientTracker.prototype.init = function(connection) { - console.log('init client tracker') - var tracker = this; this.connection = connection; var retrieveInfo = function(id, type, infoFuncName, infoArray) { @@ -1003,8 +1001,6 @@ export let samp = (function() { }); }; connection.getRegisteredClients([], function(idlist) { - console.log(idlist) - var i; var id; tracker.ids = {}; @@ -1087,7 +1083,6 @@ export let samp = (function() { } if (this.callableClient) { if (this.callableClient.init) { - console.log("init") this.callableClient.init(conn); } conn.setCallable(this.callableClient, function() { diff --git a/src/js/vo/Datalink.js b/src/js/vo/Datalink.js index a1fe814ec..f2320614e 100644 --- a/src/js/vo/Datalink.js +++ b/src/js/vo/Datalink.js @@ -133,7 +133,6 @@ export let Datalink = (function() { switch (contentType) { // A datalink response containing links to datasets or services attached to the current dataset case 'application/x-votable+xml;content=datalink': - console.log("datalink recursive") new Datalink().handleActions(url, obscoreRow, aladinInstance); break; case 'application/hips':