Skip to content

Commit 239ad11

Browse files
🧹 cleaning: Remove Tree#_copy_spine.
1 parent 86dd5e5 commit 239ad11

File tree

3 files changed

+0
-12
lines changed

3 files changed

+0
-12
lines changed

src/3-tree/implementations/0-Empty.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,6 @@ Empty.prototype.split = function (_p) {
7676
return [this, this];
7777
};
7878

79-
Empty.prototype._copy_spine = function () {
80-
return this;
81-
};
82-
8379
Empty.prototype._concat_with_deep = function (other) {
8480
assert(other instanceof Deep);
8581
assert(isSameMeasure(other.M, this.M));

src/3-tree/implementations/1-Single.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,6 @@ Single.prototype.split = function (p) {
9191
return p(this.measure()) ? [empty(this.M), this] : [this, empty(this.M)];
9292
};
9393

94-
Single.prototype._copy_spine = function () {
95-
return this;
96-
};
97-
9894
Single.prototype._concat_with_deep = function (other) {
9995
assert(other instanceof Deep);
10096
assert(isSameMeasure(other.M, this.M));

src/3-tree/implementations/2-Deep.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -176,10 +176,6 @@ Deep.prototype._concat_with_deep = function (other) {
176176
);
177177
};
178178

179-
Deep.prototype._copy_spine = function () {
180-
return new Deep(this.M, this._left, this._middle._copy_spine(), this._right);
181-
};
182-
183179
Deep.prototype._app3 = function (list, other) {
184180
assert(other instanceof Tree);
185181
return other._app3_with_deep(list, this);

0 commit comments

Comments
 (0)