Skip to content

Commit

Permalink
remove commented out code
Browse files Browse the repository at this point in the history
  • Loading branch information
Carmine DiMascio committed Dec 5, 2018
1 parent 1597a6e commit 0c42186
Showing 1 changed file with 0 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,31 +101,6 @@ class DocumentScorer(private val stopWords: StopWords) : Scorer {
return topNode
}

// internal fun getScore(node: Node): Double {
// return try {
// node.attr("gravityScore").toDouble()
// } catch (e: Exception) {
// 0.0
// }
// }
//
// // TODO: why update the DOM to track score - do seomething else
// private fun updateScore(node: Node, addToScore: Double) {
// val currentScore = getScore(node)
// val score = currentScore + addToScore
// node.attr("gravityScore", score.toString())
// }

// private fun updateNodeCount(node: Node, addToCount: Int) {
// val currentCount = try {
// node.attr("gravityNodes").toInt()
// } catch (e: Exception) {
// 0
// }
// val count = currentCount + addToCount
// node.attr("gravityNodes", count.toString())
// }

/**
* Given a text node, check all previous siblings.
* If the sibling node looks 'texty' and isn't too many
Expand Down

0 comments on commit 0c42186

Please sign in to comment.