commit 0b64606904a7f14c2e1760f3a3858ee271a53d78
parent 3a8c6f50fe7481980a451095636009629f8a6b85
Author: n0tr1v <n0tr1v@protonmail.com>
Date: Thu, 15 Jun 2023 12:26:29 -0700
useless
Diffstat:
1 file changed, 0 insertions(+), 4 deletions(-)
diff --git a/pkg/web/handlers/chess.go b/pkg/web/handlers/chess.go
@@ -896,10 +896,6 @@ func renderHideAllPieces(styles *StylesBuilder) {
styles.Appendf(`%s { display: none !important; }`, strings.Join(ids, ", "))
}
-//func distance(p1, p2 iPoint) float64 {
-// return math.Sqrt(math.Pow(p2.GetX()-p1.GetX(), 2) + math.Pow(p2.GetY()-p1.GetY(), 2))
-//}
-
func calcDisc(x1, y1, x2, y2 int) (d int, isDiag, isLine bool) {
dx := int(math.Abs(float64(x2 - x1)))
dy := int(math.Abs(float64(y2 - y1)))