Remove unused functions

This commit is contained in:
Eric NGUYEN 2023-02-24 14:47:05 +01:00
parent 4fcf600c88
commit 0f4c0584e5

View file

@ -149,30 +149,6 @@ export function ReplaceByContainer(
return fullHistory;
}
/**
* Returns the next container that will be selected
* after the selectedContainer is removed.
* If the selected container is removed, select the sibling after,
* If there is no sibling, select the parent,
*
* @param containers
* @param selectedContainerId Current selected container
* @param parent Parent of the selected/deleted container
* @param index Index of the selected/deleted container
* @returns {IContainerModel} Next selected container
*/
function GetSelectedContainerOnDelete(
containers: Map<string, IContainerModel>,
selectedContainerId: string,
parent: IContainerModel,
index: number
): string {
return FindContainerById(containers, selectedContainerId)?.properties.id ??
parent.children.at(index) ??
parent.children.at(index - 1) ??
parent.properties.id;
}
/**
* Unlink a container and its children to symbols
* (used when deleting a container)