From 07266f2031aa12aea7e1abcbdd08a7647322adcf Mon Sep 17 00:00:00 2001 From: alterdekim Date: Fri, 15 Mar 2024 21:25:37 +0300 Subject: [PATCH] clean up --- src/main/resources/static/javascript/game.js | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/main/resources/static/javascript/game.js b/src/main/resources/static/javascript/game.js index d23c963..518600b 100644 --- a/src/main/resources/static/javascript/game.js +++ b/src/main/resources/static/javascript/game.js @@ -192,14 +192,6 @@ function moveChipTo(chip) { $(chip.dom).animate({marginTop: offsetY + mm.marginTop, marginLeft: offsetX + mm.marginLeft}, 1000); } -/* -function moveChip(chip) { - $(chip.dom).css("background-color", chip.color); - let offsetY = (Math.max(chip.y-1, 0) * 55) + (chip.y * 2) + (clamp(chip.y, 0, 1) * 100) + 18; - let offsetX = (Math.max(chip.x-1, 0) * 55) + (chip.x * 2) + (clamp(chip.x, 0, 1) * 100); - $(chip.dom).animate({marginTop: offsetY, marginLeft: offsetX}, 1000); -}*/ - function moveChips() { for(let i = 0; i < board.chips.length; i++ ) { let chip = board.chips[i]; @@ -253,14 +245,6 @@ function refreshChip(position) { return chips_coords; } -/* -function refreshChips() { - let positions = distinct(board.chips.filter((c) => c.uid != 0).map(({ x, y }) => ({ x, y }))); - for( let i = 0; i < positions.length; i++ ) { - refreshChip(positions[i]); - } -}*/ - function assignChip(body) { let nc = board.chips.find((c) => c.uid == 0); if( nc == undefined ) return;