Skip to content

Commit

Permalink
Update @sabaki/immutable-gametree
Browse files Browse the repository at this point in the history
Fix #663
  • Loading branch information
yishn committed Mar 18, 2020
1 parent a0e22df commit 3236408
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
"@sabaki/go-board": "^1.4.1",
"@sabaki/gtp": "^3.0.0",
"@sabaki/i18n": "0.50.1-1",
"@sabaki/immutable-gametree": "^1.8.2",
"@sabaki/immutable-gametree": "^1.9.2",
"@sabaki/influence": "^1.2.2",
"@sabaki/sgf": "^3.4.7",
"@sabaki/shudan": "^1.5.4",
Expand All @@ -110,7 +110,7 @@
"electron": "^8.1.1",
"electron-builder": "^22.4.1",
"esm": "^3.2.25",
"mocha": "^7.1.0",
"mocha": "^7.1.1",
"onchange": "^6.1.0",
"prettier": "1.19.1",
"react": "^16.13.0",
Expand Down
4 changes: 0 additions & 4 deletions src/modules/gametree.js
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,3 @@ export function getBoard(tree, id) {
export function clearBoardCache() {
boardCache = {}
}

export function getHash(tree) {
return helper.hash(JSON.stringify(tree))
}
2 changes: 1 addition & 1 deletion src/modules/sabaki.js
Original file line number Diff line number Diff line change
Expand Up @@ -748,7 +748,7 @@ class Sabaki extends EventEmitter {
}

generateTreeHash() {
return this.state.gameTrees.map(tree => gametree.getHash(tree)).join('-')
return this.state.gameTrees.map(tree => tree.getHash()).join('-')
}

generateFileHash() {
Expand Down

0 comments on commit 3236408

Please sign in to comment.