File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 1
1
import assert from 'assert' ;
2
2
import BLACK from '../color/BLACK.js' ;
3
3
import Node from '../types/Node.js' ;
4
- import Leaf from '../types/Leaf.js' ;
5
4
import delete_case2 from './delete_case2.js' ;
6
5
7
6
/**
@@ -10,10 +9,10 @@ import delete_case2 from './delete_case2.js';
10
9
* - all root-leaf paths going through n have a black height of b - 1
11
10
* - all other root-leaf paths have a black height of b
12
11
*
13
- * @param {Node|Leaf } n - The input node.
12
+ * @param {Node } n - The input node.
14
13
*/
15
14
const delete_case1 = ( n ) => {
16
- assert ( n instanceof Node || n instanceof Leaf ) ;
15
+ assert ( n instanceof Node ) ;
17
16
assert ( n . _color === BLACK ) ;
18
17
// If n is the root, there is nothing to do:
19
18
// - all paths go through n, and
You can’t perform that action at this time.
0 commit comments