Skip to content

Commit eab77ee

Browse files
committed
Remove useless logs
1 parent 0dd195c commit eab77ee

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/data-structures/suffix-tree.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,7 @@ SuffixTree.prototype.addNode = (function () {
3939
return addNode(suffix.substr(1, suffix.length), current.nodes[suffix[0]]);
4040
}
4141
var prefix = maxPrefix(current.value, suffix);
42-
console.log(prefix, current.value, suffix);
4342
if (prefix.length) {
44-
console.log('recursive, prefix:', prefix, current.value, suffix);
4543
var temp = current.value;
4644
var suffixSuffix = suffix.substr(prefix.length, suffix.length);
4745
var currentSuffix = temp.substr(prefix.length, temp.length);
@@ -62,7 +60,6 @@ SuffixTree.prototype.build = function (string) {
6260
this.root.value = string;
6361
for (var i = 1; i < string.length; i += 1) {
6462
this.addNode(string.substr(i, string.length));
65-
console.log(JSON.stringify(this.root));
6663
}
6764
};
6865

0 commit comments

Comments
 (0)