clarify recursive function in comment too

This commit is contained in:
Brandon Thomas committed 2023-01-14 03:57:43 -05:00
1 parent 0214b060e7
commit d1052887c8
1 file changed
+4 -1
+4 -1
View File
@@ -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) {