Fix two warnings because of unused functions.

This commit is contained in:
Marco 2022-12-14 22:20:42 +01:00
parent 625e5b11fa
commit a169ff0b76
2 changed files with 0 additions and 18 deletions

View File

@ -2,7 +2,6 @@ package server
import (
"errors"
"fmt"
"log"
"strings"
)
@ -44,16 +43,3 @@ func parseMove(received string) (*chessMove, error) {
return &move, nil
}
func moveToString(move chessMove) string {
var str string
if !move.realMove {
str = "just checking: "
} else {
str = "move done: "
}
str = str + fmt.Sprint(move.startSquare.col) + fmt.Sprint(move.startSquare.row) +
" " + fmt.Sprint(move.endSquare.col) + fmt.Sprint(move.endSquare.row)
return str
}

View File

@ -13,7 +13,3 @@ func NewPlayer(name string, conn *websocket.Conn) *Player {
conn: conn,
}
}
func (player *Player) movePlayerToGame(game chessGame) {
}