aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2018-11-26 22:27:12 -1000
committercel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2018-11-26 22:59:18 -1000
commit41e82f27051c7da9185794b0d71fb1857418465d (patch)
treeb91e025cdf30236bcbf5d66ccd792e5af5ab3c7f
parent61de550271bb370ae1e93c29fc5fcece38087d9a (diff)
downloadpatchfoo-41e82f27051c7da9185794b0d71fb1857418465d.tar.gz
patchfoo-41e82f27051c7da9185794b0d71fb1857418465d.zip
Remove dead code
-rw-r--r--lib/render-msg.js21
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