From 96c562187906a918beb72ca2647a60d75b7f6b27 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sun, 21 Jan 2018 18:48:22 +0900 Subject: [PATCH] examples/2048: Remove unused functions --- examples/2048/2048/tile.go | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/examples/2048/2048/tile.go b/examples/2048/2048/tile.go index a0c5d7279..71b0e420d 100644 --- a/examples/2048/2048/tile.go +++ b/examples/2048/2048/tile.go @@ -106,26 +106,6 @@ func NewTile(value int, x, y int) *Tile { } } -// Value returns the current value. -func (t *Tile) Value() int { - return t.current.value -} - -// Pos returns the current position. -func (t *Tile) Pos() (int, int) { - return t.current.x, t.current.y -} - -// NextValue returns the next value. -func (t *Tile) NextValue() int { - return t.next.value -} - -// NextPos returns the next position. -func (t *Tile) NextPos() (int, int) { - return t.next.x, t.next.y -} - // IsMoving returns a boolean value indicating if the tile is animating. func (t *Tile) IsMoving() bool { return 0 < t.movingCount