Skip to content

Commit 11f7574

Browse files
🧹 cleaning(Node2,Node3): Remove dead code.
1 parent dd836b5 commit 11f7574

File tree

2 files changed

+0
-48
lines changed

2 files changed

+0
-48
lines changed

src/2-node/2-Node2.js

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -21,27 +21,3 @@ Node2.prototype.measure = function () {
2121
Node2.prototype.digit = function () {
2222
return new Two(this.a, this.b);
2323
};
24-
25-
Node2.prototype.head = function () {
26-
throw new Error('trying to call head of Node2');
27-
};
28-
29-
Node2.prototype.last = function () {
30-
throw new Error('trying to call last of Node2');
31-
};
32-
33-
Node2.prototype.init = function () {
34-
throw new Error('trying to call init of Node2');
35-
};
36-
37-
Node2.prototype.tail = function () {
38-
throw new Error('trying to call tail of Node2');
39-
};
40-
41-
Node2.prototype.push = function (_value) {
42-
throw new Error('trying to call push of Node2');
43-
};
44-
45-
Node2.prototype.cons = function (_value) {
46-
throw new Error('trying to call cons of Node2');
47-
};

src/2-node/3-Node3.js

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -22,27 +22,3 @@ Node3.prototype.measure = function () {
2222
Node3.prototype.digit = function () {
2323
return new Three(this.a, this.b, this.c);
2424
};
25-
26-
Node3.prototype.head = function () {
27-
throw new Error('trying to call head of Node3');
28-
};
29-
30-
Node3.prototype.last = function () {
31-
throw new Error('trying to call last of Node3');
32-
};
33-
34-
Node3.prototype.init = function () {
35-
throw new Error('trying to call init of Node3');
36-
};
37-
38-
Node3.prototype.tail = function () {
39-
throw new Error('trying to call tail of Node3');
40-
};
41-
42-
Node3.prototype.push = function (_value) {
43-
throw new Error('trying to call push of Node3');
44-
};
45-
46-
Node3.prototype.cons = function (_value) {
47-
throw new Error('trying to call cons of Node3');
48-
};

0 commit comments

Comments
 (0)