Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
oatkiller committed Jan 9, 2020
1 parent bc962c1 commit 26cac31
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,19 +57,6 @@ export function parent(
}
}

/**
* Returns true if the `childProcess` has no siblings
*/
export function isOnlyChild(tree: IndexedProcessTree, childProcess: ProcessEvent) {
const parentProcess = parent(tree, childProcess);
if (parentProcess === undefined) {
// if parent process is undefined, then the child is the root. We choose not to support multiple roots
return true;
} else {
return children(tree, parentProcess).length === 1;
}
}

/**
* Number of processes in the tree
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import {
factory as indexedProcessTreeFactory,
children as indexedProcessTreeChildren,
parent as indexedProcessTreeParent,
isOnlyChild as indexedProcessTreeIsOnlyChild,
size,
levelOrder,
} from '../../models/indexed_process_tree';
Expand Down

0 comments on commit 26cac31

Please sign in to comment.