Remove classCache check

It’s no longer necessary. If we have an entry in the `candidateRuleCache` then it’ll also be in the class cache and vice-versa. Also, we weren’t adding rules when hitting that cache like we should’ve been.
This commit is contained in:
Jordan Pittman 2022-08-29 15:03:40 -04:00
parent 58cc7ed3e8
commit c601fea37e

View file

@ -686,10 +686,6 @@ function generateRules(candidates, context) {
continue
}
if (context.classCache.has(candidate)) {
continue
}
if (context.candidateRuleCache.has(candidate)) {
allRules = allRules.concat(Array.from(context.candidateRuleCache.get(candidate)))
continue