started to remove everything RBTree related from the Transaction.js

This commit is contained in:
Kevin Jahns
2015-10-16 12:31:03 +02:00
parent aff10fa4db
commit cf365b8902
6 changed files with 66 additions and 48 deletions

View File

@@ -131,10 +131,12 @@ class RBTree {
this.length = 0
}
* findNext (id) {
return yield* this.findNodeWithLowerBound([id[0], id[1] + 1])
var n = yield* this.findNodeWithLowerBound([id[0], id[1] + 1])
return n == null ? null : n.val
}
* findPrev (id) {
return yield* this.findNodeWithUpperBound([id[0], id[1] - 1])
var n = yield* this.findNodeWithUpperBound([id[0], id[1] - 1])
return n == null ? null : n.val
}
* findNodeWithLowerBound (from) {
if (from === void 0) {