From 2fc6e91ee2c18646f7a8dff8fc77c7509c0c9206 Mon Sep 17 00:00:00 2001 From: Paul Mathieu Date: Fri, 17 Dec 2021 15:27:08 -0800 Subject: [PATCH] Remove some dead code --- index.js | 1 - 1 file changed, 1 deletion(-) diff --git a/index.js b/index.js index 0a84680..551bdd4 100644 --- a/index.js +++ b/index.js @@ -322,7 +322,6 @@ function movePoint(p, s, u) { function rayThroughGrid(origin, direction, maxDistance) { 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 ? Math.floor(origin[i] + 0.5) + 0.5 :