From 41e82f27051c7da9185794b0d71fb1857418465d Mon Sep 17 00:00:00 2001 From: cel Date: Mon, 26 Nov 2018 22:27:12 -1000 Subject: Remove dead code --- lib/render-msg.js | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'lib') 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 -- cgit v1.2.3