Skip to content

Commit

Permalink
Removed dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
breck7 committed Nov 24, 2017
1 parent 4833e3f commit ad4e76e
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 41 deletions.
21 changes: 1 addition & 20 deletions jtree.browser.js
Expand Up @@ -2321,25 +2321,6 @@ class GrammarKeywordDefinitionNode extends AbstractGrammarDefinitionNode {
return this.findBeam(GrammarConstants.description) || ""
}

// todo: delete
getAllTileSettingsDefinitions() {
const allKeywordDefs = this.getRunTimeKeywordMapWithDefinitions()
return Object.values(allKeywordDefs).filter(def => def.isTileSettingDefinition())
}

// todo: delete
isTileSettingDefinition() {
return this.isAKeyword({ setting: true })
}

// todo: delete
toFormBray(value) {
return `@input
data-onChangeCommand tile changeTileSettingAndRenderCommand
name ${this.getId()}
value ${value}`
}

getConstantsObject() {
const constantsNode = this.getNodeByType(GrammarConstantsNode)
return constantsNode ? constantsNode.getConstantsObj() : {}
Expand Down Expand Up @@ -2609,6 +2590,6 @@ jtree.TreeNode = TreeNode
jtree.NonTerminalNode = GrammarBackedNonTerminalNode
jtree.TerminalNode = GrammarBackedTerminalNode

jtree.getVersion = () => "14.5.0"
jtree.getVersion = () => "14.5.1"

window.jtree = jtree
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "jtree",
"version": "14.5.0",
"version": "14.5.1",
"description": "Tree Notation parser, compiler-compiler, and virtual machine for Tree Languages",
"main": "index.js",
"bin": {
Expand Down
4 changes: 4 additions & 0 deletions releaseNotes.md
@@ -1,3 +1,7 @@
14.5.1 / 2017-11-24
===================
- Infra: removed dead code

14.5.0 / 2017-11-23
===================
- New: standardized error messages into a grammar
Expand Down
19 changes: 0 additions & 19 deletions src/grammar/GrammarKeywordDefinitionNode.js
Expand Up @@ -63,25 +63,6 @@ class GrammarKeywordDefinitionNode extends AbstractGrammarDefinitionNode {
return this.findBeam(GrammarConstants.description) || ""
}

// todo: delete
getAllTileSettingsDefinitions() {
const allKeywordDefs = this.getRunTimeKeywordMapWithDefinitions()
return Object.values(allKeywordDefs).filter(def => def.isTileSettingDefinition())
}

// todo: delete
isTileSettingDefinition() {
return this.isAKeyword({ setting: true })
}

// todo: delete
toFormBray(value) {
return `@input
data-onChangeCommand tile changeTileSettingAndRenderCommand
name ${this.getId()}
value ${value}`
}

getConstantsObject() {
const constantsNode = this.getNodeByType(GrammarConstantsNode)
return constantsNode ? constantsNode.getConstantsObj() : {}
Expand Down
2 changes: 1 addition & 1 deletion src/jtree.js
Expand Up @@ -13,6 +13,6 @@ jtree.TreeNode = TreeNode
jtree.NonTerminalNode = GrammarBackedNonTerminalNode
jtree.TerminalNode = GrammarBackedTerminalNode

jtree.getVersion = () => "14.5.0"
jtree.getVersion = () => "14.5.1"

module.exports = jtree

0 comments on commit ad4e76e

Please sign in to comment.