From 85ff40e9948d4fc8ebddb5a9d38b69107ff564a2 Mon Sep 17 00:00:00 2001 From: Alan Gutierrez Date: Sat, 5 Dec 2015 05:25:52 -0500 Subject: [PATCH] Remove `to user land` comments. --- balancer.js | 1 - cursor.js | 3 --- strata.js | 6 ------ 3 files changed, 10 deletions(-) diff --git a/balancer.js b/balancer.js index cd9ecb1e..193b6294 100644 --- a/balancer.js +++ b/balancer.js @@ -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 diff --git a/cursor.js b/cursor.js index c97795bd..ef17d5f1 100644 --- a/cursor.js +++ b/cursor.js @@ -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 @@ -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 diff --git a/strata.js b/strata.js index 88485b31..0475c503 100644 --- a/strata.js +++ b/strata.js @@ -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 @@ -73,7 +72,6 @@ Strata.prototype.create = cadence(function (async) { }) }) -// to user land Strata.prototype.open = cadence(function (async) { this.sheaf.createMagazine() @@ -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 @@ -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 () { @@ -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