@@ -102,11 +102,9 @@ Four.prototype._nodes_with_list = function (M, list, other) {
102
102
103
103
Four . prototype . _nodes_with_list_and_one = function ( M , list , other ) {
104
104
assert ( other instanceof One ) ;
105
- assert ( Number . isInteger ( list . length ) && list . length >= 0 && list . length <= 4 ) ;
105
+ assert ( Number . isInteger ( list . length ) && list . length >= 1 && list . length <= 4 ) ;
106
106
// eslint-disable-next-line default-case
107
107
switch ( list . length ) {
108
- case 0 :
109
- return [ node3 ( M , other . a , this . a , this . b ) , node2 ( M , this . c , this . d ) ] ;
110
108
case 1 :
111
109
return [
112
110
node3 ( M , other . a , list [ 0 ] , this . a ) ,
@@ -135,14 +133,9 @@ Four.prototype._nodes_with_list_and_one = function (M, list, other) {
135
133
136
134
Four . prototype . _nodes_with_list_and_two = function ( M , list , other ) {
137
135
assert ( other instanceof Two ) ;
138
- assert ( Number . isInteger ( list . length ) && list . length >= 0 && list . length <= 4 ) ;
136
+ assert ( Number . isInteger ( list . length ) && list . length >= 1 && list . length <= 4 ) ;
139
137
// eslint-disable-next-line default-case
140
138
switch ( list . length ) {
141
- case 0 :
142
- return [
143
- node3 ( M , other . a , other . b , this . a ) ,
144
- node3 ( M , this . b , this . c , this . d ) ,
145
- ] ;
146
139
case 1 :
147
140
return [
148
141
other . node ( M ) ,
@@ -173,15 +166,9 @@ Four.prototype._nodes_with_list_and_two = function (M, list, other) {
173
166
174
167
Four . prototype . _nodes_with_list_and_three = function ( M , list , other ) {
175
168
assert ( other instanceof Three ) ;
176
- assert ( Number . isInteger ( list . length ) && list . length >= 0 && list . length <= 4 ) ;
169
+ assert ( Number . isInteger ( list . length ) && list . length >= 1 && list . length <= 4 ) ;
177
170
// eslint-disable-next-line default-case
178
171
switch ( list . length ) {
179
- case 0 :
180
- return [
181
- other . node ( M ) ,
182
- node2 ( M , this . a , this . b ) ,
183
- node2 ( M , this . c , this . d ) ,
184
- ] ;
185
172
case 1 :
186
173
return [
187
174
other . node ( M ) ,
@@ -213,15 +200,9 @@ Four.prototype._nodes_with_list_and_three = function (M, list, other) {
213
200
214
201
Four . prototype . _nodes_with_list_and_four = function ( M , list , other ) {
215
202
assert ( other instanceof Four ) ;
216
- assert ( Number . isInteger ( list . length ) && list . length >= 0 && list . length <= 4 ) ;
203
+ assert ( Number . isInteger ( list . length ) && list . length >= 1 && list . length <= 4 ) ;
217
204
// eslint-disable-next-line default-case
218
205
switch ( list . length ) {
219
- case 0 :
220
- return [
221
- node3 ( M , other . a , other . b , other . c ) ,
222
- node2 ( M , other . d , this . a ) ,
223
- node3 ( M , this . b , this . c , this . d ) ,
224
- ] ;
225
206
case 1 :
226
207
return [
227
208
node3 ( M , other . a , other . b , other . c ) ,
0 commit comments