Skip to content

Commit

Permalink
Remove to user land comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
flatheadmill committed Dec 5, 2015
1 parent 60d897a commit 85ff40e
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 10 deletions.
1 change: 0 additions & 1 deletion balancer.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ Balancer.prototype._nodify = cadence(function (async, locker, page) {
})
})

// to user land
Balancer.prototype.balance = cadence(function balance (async, sheaf) {
var locker = this.sheaf.createLocker(), operations = [], address, length

Expand Down
3 changes: 0 additions & 3 deletions cursor.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ function Cursor (sheaf, logger, descents, exclusive, searchKey) {
descents.shift()
}

// TODO get rid of comments like this one
// to user land
Cursor.prototype.next = cadence(function (async) {
var next

Expand All @@ -40,7 +38,6 @@ Cursor.prototype.next = cadence(function (async) {
})
})

// to user land
Cursor.prototype.indexOf = function (key, index) {
ok(arguments.length == 2, 'index requires two arguments')
var page = this.page
Expand Down
6 changes: 0 additions & 6 deletions strata.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ function Strata (options) {
this.logger = new Logger(options)
}

// to user land
Strata.prototype.create = cadence(function (async) {
this.sheaf.createMagazine()
var locker = this.sheaf.createLocker(), count = 0, root, leaf, journal
Expand Down Expand Up @@ -73,7 +72,6 @@ Strata.prototype.create = cadence(function (async) {
})
})

// to user land
Strata.prototype.open = cadence(function (async) {
this.sheaf.createMagazine()

Expand All @@ -98,7 +96,6 @@ Strata.prototype.open = cadence(function (async) {
})
})

// to user land
Strata.prototype.close = cadence(function (async) {
// TODO that's a lot of indirection.
var cartridge = this.sheaf.metaRoot.cartridge, lock = cartridge.value.page.lock
Expand Down Expand Up @@ -164,7 +161,6 @@ Strata.prototype.toLeaf = cadence(function (async, sought, descents, key, exclus
})
})

// to user land
Strata.prototype.cursor = cadence(function (async, key, exclusive) {
var descents = [ new Descent(this.sheaf, this.sheaf.createLocker()) ]
async([function () {
Expand All @@ -191,12 +187,10 @@ Strata.prototype.mutator = function (key, callback) {
this.cursor(key, true, callback)
}

// to user land
Strata.prototype.balance = function (callback) {
new Balancer(this.sheaf, this.logger).balance(callback)
}

// to user land
Strata.prototype.vivify = cadence(function (async) {
var locker = this.sheaf.createLocker(), root

Expand Down

0 comments on commit 85ff40e

Please sign in to comment.