Remove dead code

This commit is contained in:
Wuzzy 2023-10-21 18:04:31 +02:00
parent b5a1e52f7a
commit 55cda1216b

View File

@ -74,7 +74,6 @@ let noises = {
};
function updateAreaVarsFor(noiseType) {
console.log("noiseType "+noiseType)
let noise = noises[noiseType];
let is_absolute = noise.absvalue === true
@ -132,7 +131,6 @@ function updateAreaVarsFor(noiseType) {
draw_heat_min = draw_min;
draw_heat_max = draw_max;
midpoint_heat = midpoint;
console.log("Heat= "+limit_heat_min+" - "+limit_heat_max);
} else if (noiseType === "humidity") {
limit_humidity_min = limit_min;
limit_humidity_max = limit_max;
@ -742,7 +740,6 @@ function getNearestPointFromCanvasPos(x, y, maxDist) {
}
let mouseIsDown = false;
let dragDropPointID = null;
let dragDropPos = null;
function updatePointWhenDragged(pointID) {
if (pointID !== null && !drawError) {
@ -820,14 +817,12 @@ voronoiCanvas.onmouseup = function(event) {
// end drag-n-drop
updatePointWhenDragged(dragDropPointID);
mouseIsDown = false;
dragDropPos = null;
dragDropPointID = null;
}
voronoiCanvas.onmouseleave = function() {
// end drag-n-drop
mouseIsDown = false;
dragDropPointID = null;
dragDropPos = null;
coordinateDisplay.innerHTML = " ";
}