Fix two warnings because of unused functions.
This commit is contained in:
parent
625e5b11fa
commit
a169ff0b76
@ -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
|
||||
}
|
||||
|
@ -13,7 +13,3 @@ func NewPlayer(name string, conn *websocket.Conn) *Player {
|
||||
conn: conn,
|
||||
}
|
||||
}
|
||||
|
||||
func (player *Player) movePlayerToGame(game chessGame) {
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user