From 7bb1727b785ce0e06f8e0a75601af78fe7dfe344 Mon Sep 17 00:00:00 2001 From: Michael Enion Date: Wed, 10 Jan 2024 08:22:28 -0800 Subject: [PATCH] Comment out unused debug messages --- scripts/Ruler.js | 6 ++---- scripts/settings.js | 4 ++-- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/scripts/Ruler.js b/scripts/Ruler.js index deeaed2..44f083f 100644 --- a/scripts/Ruler.js +++ b/scripts/Ruler.js @@ -200,10 +200,8 @@ function _computeDistance(wrapped, gridSpaces) { for ( const segment of this.segments ) { segment.moveDistance = modifiedMoveDistance(segment.distance, segment.ray, token); totalMoveDistance += segment.moveDistance; - - const { A, B } = segment.ray; - console.debug(`${A.x},${A.y},${A.z} --> ${B.x},${B.y},${B.z}: distance ${segment.distance}, move ${segment.moveDistance}`); - + // const { A, B } = segment.ray; + //console.debug(`${A.x},${A.y},${A.z} --> ${B.x},${B.y},${B.z}: distance ${segment.distance}, move ${segment.moveDistance}`); } this.totalMoveDistance = totalMoveDistance; } diff --git a/scripts/settings.js b/scripts/settings.js index ddb96ee..dfe237f 100644 --- a/scripts/settings.js +++ b/scripts/settings.js @@ -256,7 +256,7 @@ function toggleTokenRulerWaypoint(context, add = true) { const position = canvas.mousePosition; const ruler = canvas.controls.ruler; if ( !canvas.tokens.active || !ruler || !ruler.active ) return; - console.debug(`${add ? "add" : "remove"}TokenRulerWaypoint`); + // console.debug(`${add ? "add" : "remove"}TokenRulerWaypoint`); // Keep track of when we last added/deleted a waypoint. const now = Date.now(); @@ -264,7 +264,7 @@ function toggleTokenRulerWaypoint(context, add = true) { if ( delta < 100 ) return true; // Throttle keyboard movement once per 100ms MOVE_TIME = now; - console.debug(`${add ? "adding" : "removing"}TokenRulerWaypoint`); + // console.debug(`${add ? "adding" : "removing"}TokenRulerWaypoint`); if ( add ) ruler._addWaypoint(position); else if ( ruler.waypoints.length > 1 ) ruler._removeWaypoint(position); // Removing the last waypoint throws errors. }