From cbdd4dbe4cb6b85a0728d59df35879e57512b319 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B0=D0=BD=D0=B4=D1=80=20?= =?UTF-8?q?=D0=9C=D0=B5=D0=BB=D0=B5=D0=BD=D1=82=D1=8C=D0=B5=D0=B2?= Date: Mon, 22 Jun 2026 14:20:25 +0300 Subject: [PATCH] chore: rm unused unexported funcs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Александр Мелентьев --- notation.go | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/notation.go b/notation.go index a2e321a4b..c6ed5ba72 100644 --- a/notation.go +++ b/notation.go @@ -428,19 +428,6 @@ func getCheckChar(pos *Position, move *Move) string { return "+" } -// getCheckBytes returns the check or mate bytes for a move -// -//nolint:unused // I don't care about this -func getCheckBytes(pos *Position, move *Move) []byte { - if !move.HasTag(Check) { - return []byte{} - } - if pos.Update(move).Status() == Checkmate { - return []byte(mateStr) - } - return []byte(checkStr) -} - func formS1(pos *Position, m *Move) string { p := pos.board.Piece(m.s1) if p.Type() == Pawn { @@ -502,17 +489,3 @@ func charFromPieceType(p PieceType) string { } return "" } - -func pieceTypeFromChar(c string) PieceType { - switch c { - case "q": - return Queen - case "r": - return Rook - case "b": - return Bishop - case "n": - return Knight - } - return NoPieceType -}