diff --git a/ui/puzzle/css/build/_puzzle.scss b/ui/puzzle/css/build/_puzzle.scss index b25cf298ec..830f4e12a7 100644 --- a/ui/puzzle/css/build/_puzzle.scss +++ b/ui/puzzle/css/build/_puzzle.scss @@ -9,7 +9,6 @@ @import '../../../tree/css/tree'; @import '../../../ceval/css/ceval'; @import '../../../ceval/css/eval-gauge'; -@import '../../../chess/css/opening'; @import '../../../chess/css/control'; @import '../../../chess/css/promotion'; @import '../../../chess/css/blindfold'; diff --git a/ui/puzzle/src/ctrl.ts b/ui/puzzle/src/ctrl.ts index ab9a6f465b..1504b6d338 100644 --- a/ui/puzzle/src/ctrl.ts +++ b/ui/puzzle/src/ctrl.ts @@ -240,8 +240,8 @@ export default function(opts, redraw: () => void): Controller { }); }; - function addDests(dests, path, opening) { - tree.addDests(dests, path, opening); + function addDests(dests, path) { + tree.addDests(dests, path); if (path === vm.path) { withGround(showGround); // redraw(); diff --git a/ui/puzzle/src/socket.ts b/ui/puzzle/src/socket.ts index 40c90fb968..05dc6d85b7 100644 --- a/ui/puzzle/src/socket.ts +++ b/ui/puzzle/src/socket.ts @@ -16,7 +16,7 @@ export default function(opts) { }, dests: function(data) { anaDestsCache[data.path] = data; - opts.addDests(data.dests, data.path, data.opening); + opts.addDests(data.dests, data.path); clearTimeout(anaDestsTimeout); }, destsFailure: function(data) { diff --git a/ui/puzzle/src/view/main.ts b/ui/puzzle/src/view/main.ts index a1583f14c7..5762957c49 100644 --- a/ui/puzzle/src/view/main.ts +++ b/ui/puzzle/src/view/main.ts @@ -9,21 +9,10 @@ import historyView from './history'; import * as side from './side'; import * as gridHacks from './gridHacks'; import { onInsert, bind, bindMobileMousedown } from '../util'; -import { Controller, MaybeVNode } from '../interfaces'; - -function renderOpeningBox(ctrl: Controller): MaybeVNode { - var opening = ctrl.getTree().getOpening(ctrl.vm.nodeList); - if (opening) return h('div.opening_box', { - attrs: { title: opening.eco + ' ' + opening.name } - }, [ - h('strong', opening.eco), - ' ' + opening.name - ]); -} +import { Controller } from '../interfaces'; function renderAnalyse(ctrl: Controller): VNode { return h('div.puzzle__moves.areplay', [ - renderOpeningBox(ctrl), treeView(ctrl) ]); }