diff options
Diffstat (limited to 'lib/render-msg.js')
-rw-r--r-- | lib/render-msg.js | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/lib/render-msg.js b/lib/render-msg.js index c529b4f..39550ac 100644 --- a/lib/render-msg.js +++ b/lib/render-msg.js @@ -1340,27 +1340,6 @@ RenderMsg.prototype.chessBoard = function (board) { ) } -RenderMsg.prototype.chessMove = function (cb) { - var self = this - var c = self.c - var fen = c.fen && c.fen.length === 2 ? c.pgnMove : c.fen - var game = parseChess(fen) - var piece = game && lookupPiece(game.board, c.dest) - self.link(self.c.root, function (err, rootLink) { - if (err) return cb(err) - self.wrap([ - h('div', h('small', '> ', rootLink)), - h('p', - // 'player ', (c.ply || ''), ' ', - 'moved ', (piece ? [renderChessSymbol(piece), ' '] : ''), - 'from ' + c.orig, ' ', - 'to ' + c.dest - ), - self.chessBoard(game.board) - ], cb) - }) -} - RenderMsg.prototype.chessInvite = function (cb) { var self = this var myColor = self.c.myColor |