Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 0 additions & 27 deletions notation.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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
}
Loading