Remove unused code
This commit is contained in:
@@ -29,14 +29,6 @@ module.exports = class CraftingNode
|
|||||||
queue.push child
|
queue.push child
|
||||||
return queue
|
return queue
|
||||||
|
|
||||||
getNode: (path)->
|
|
||||||
return null unless _.isArray(path) and path.length > 0
|
|
||||||
|
|
||||||
child = @children[path[0]]
|
|
||||||
return null unless child?
|
|
||||||
|
|
||||||
return child.getPath path[1..]
|
|
||||||
|
|
||||||
# Property Methods #############################################################################
|
# Property Methods #############################################################################
|
||||||
|
|
||||||
getChildren: ->
|
getChildren: ->
|
||||||
@@ -62,9 +54,6 @@ module.exports = class CraftingNode
|
|||||||
size += child.size
|
size += child.size
|
||||||
return size
|
return size
|
||||||
|
|
||||||
getNodeType: ->
|
|
||||||
return @_nodeType
|
|
||||||
|
|
||||||
isValid: ->
|
isValid: ->
|
||||||
return @_valid if @_valid?
|
return @_valid if @_valid?
|
||||||
|
|
||||||
@@ -80,7 +69,6 @@ module.exports = class CraftingNode
|
|||||||
depth: { get:@prototype.getDepth }
|
depth: { get:@prototype.getDepth }
|
||||||
size: { get:@prototype.getSize }
|
size: { get:@prototype.getSize }
|
||||||
|
|
||||||
|
|
||||||
# Virtual Methods ##############################################################################
|
# Virtual Methods ##############################################################################
|
||||||
|
|
||||||
# Subclasses must override this method to create such children as are appropriate for that kind of node. The new
|
# Subclasses must override this method to create such children as are appropriate for that kind of node. The new
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ builder = mod = modPack = modVersion = null
|
|||||||
|
|
||||||
########################################################################################################################
|
########################################################################################################################
|
||||||
|
|
||||||
describe.only 'GraphBuilder.coffee', ->
|
describe 'GraphBuilder.coffee', ->
|
||||||
|
|
||||||
beforeEach ->
|
beforeEach ->
|
||||||
modPack = new ModPack
|
modPack = new ModPack
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ global.util = require 'util'
|
|||||||
global.w = require 'when'
|
global.w = require 'when'
|
||||||
|
|
||||||
{Logger} = require 'crafting-guide-common'
|
{Logger} = require 'crafting-guide-common'
|
||||||
global.logger = new Logger level:Logger.DEBUG
|
global.logger = new Logger level:Logger.FATAL
|
||||||
|
|
||||||
require '../src/coffee/polyfill'
|
require '../src/coffee/polyfill'
|
||||||
require '../src/coffee/underscore_mixins'
|
require '../src/coffee/underscore_mixins'
|
||||||
|
|||||||
Reference in New Issue
Block a user