Remove some dead code

This commit is contained in:
Paul Mathieu 2021-12-17 15:27:08 -08:00
parent f045a8fff1
commit 2fc6e91ee2

View File

@ -322,7 +322,6 @@ function movePoint(p, s, u) {
function rayThroughGrid(origin, direction, maxDistance) { function rayThroughGrid(origin, direction, maxDistance) {
const range = i => [...Array(i).keys()]; const range = i => [...Array(i).keys()];
const length = p => Math.sqrt(p[0] * p[0] + p[1] * p[1] + p[2] * [2]);
const nextGrid = range(3).map(i => direction[i] > 0 ? const nextGrid = range(3).map(i => direction[i] > 0 ?
Math.floor(origin[i] + 0.5) + 0.5 : Math.floor(origin[i] + 0.5) + 0.5 :