aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorHolden Rohrer <hr@hrhr.dev>2020-01-20 21:47:26 -0500
committerHolden Rohrer <hr@hrhr.dev>2020-01-20 21:47:26 -0500
commit5da019cd1ff9a492900582996867b2fbf8a0eb0e (patch)
tree4f876bd381e503852ae2ccc5dbc5496684bc9248 /tools
parentb9dfc89f239cdecaf546238ed5dae055077e315f (diff)
removed extraneous code from tools/search
Diffstat (limited to 'tools')
-rw-r--r--tools/search.js5
1 files changed, 0 insertions, 5 deletions
diff --git a/tools/search.js b/tools/search.js
index 38a1124..7f681f0 100644
--- a/tools/search.js
+++ b/tools/search.js
@@ -12,11 +12,6 @@ function getComp(index){
return (element,needle) => (element[index] - needle[index] || element[1-index] - needle[1-index])
}
-function tileToChar(coord){
- let cofactor = [8,16];
- return [coord[0]*cofactor[0], coord[1]*cofactor[1]];
-}
-
function Search(searchBlock){ // searchBlock should be a Space object.
this.tiles = {}; // Object which stores Spaces.
this.sort = [[],[]]; // Vertically/horizontally sorted list of tiles for fast addition, deletion, and searching