14 lines
379 B
Plaintext
14 lines
379 B
Plaintext
///removeChild(parent, child)
|
|
/**
|
|
* removeChild :: TreeNode -> TreeNode -> ()
|
|
*
|
|
* Removes `child` from the list of children in `parent` and sets the parent of the `child` to noone.
|
|
*
|
|
* @param parent the parent TreeNode
|
|
* @param child the child TreeNode
|
|
*/
|
|
|
|
ds_list_delete(argument0.children, ds_list_find_index(argument0.children, argument1));
|
|
argument1.parent = noone;
|
|
|