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 11import assert from 'assert' ;
22import BLACK from '../color/BLACK.js' ;
33import Node from '../types/Node.js' ;
4- import Leaf from '../types/Leaf.js' ;
54import delete_case2 from './delete_case2.js' ;
65
76/**
@@ -10,10 +9,10 @@ import delete_case2 from './delete_case2.js';
109 * - all root-leaf paths going through n have a black height of b - 1
1110 * - all other root-leaf paths have a black height of b
1211 *
13- * @param {Node|Leaf } n - The input node.
12+ * @param {Node } n - The input node.
1413 */
1514const delete_case1 = ( n ) => {
16- assert ( n instanceof Node || n instanceof Leaf ) ;
15+ assert ( n instanceof Node ) ;
1716 assert ( n . _color === BLACK ) ;
1817 // If n is the root, there is nothing to do:
1918 // - all paths go through n, and
You can’t perform that action at this time.
0 commit comments