mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-04 17:38:10 +00:00
clarify recursive function in comment too
This commit is contained in:
1 parent
0214b060e7
commit
d1052887c8
1 file changed
+4
-1
@@ -177,11 +177,14 @@ export function AppWrapper(props: Props) {
|
||||
)
|
||||
}
|
||||
|
||||
/// NB: This was the really expensive cubic time++ aglorithm to recursively calculate nested category assignments.
|
||||
/// This has since been ported to the server and will no longer be computed here. We're preserving this for posterity.
|
||||
///
|
||||
/// function findAllAncestorTokens(categoryToken: string, allCategoriesByTokenMap: Map<string, TtsCategory>): Set<string> {
|
||||
/// const ancestorTokens = recursiveFindAllAncestorTokens(categoryToken, allCategoriesByTokenMap);
|
||||
/// return new Set(ancestorTokens);
|
||||
/// }
|
||||
|
||||
///
|
||||
/// function recursiveFindAllAncestorTokens(categoryToken: string, allCategoriesByTokenMap: Map<string, TtsCategory>): string[] {
|
||||
/// let category = allCategoriesByTokenMap.get(categoryToken)
|
||||
/// if (category === undefined) {
|
||||
|
||||
Reference in new issue
Block a user