From 95b945d2b3fde1f3c58e3c6885f9fa06afc31755 Mon Sep 17 00:00:00 2001 From: Niels Thykier Date: Sun, 12 Aug 2018 18:41:08 +0000 Subject: [PATCH] inst-tester: Remove obsolete optimization Signed-off-by: Niels Thykier --- britney2/installability/tester.py | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/britney2/installability/tester.py b/britney2/installability/tester.py index d173b75..a8c90a3 100644 --- a/britney2/installability/tester.py +++ b/britney2/installability/tester.py @@ -262,24 +262,6 @@ class InstallabilityTester(object): cache_inst = self._cache_inst stats = self._stats - if musts and t in cache_inst and not never: - # use the inst cache only for direct queries/simple queries. - cache = True - if choices: - # This is a recursive call, where there is no "never" so far. - # We know t satisfies at least one of the remaining choices. - # If it satisfies all remaining choices, we can use the cache - # in this case (since never is empty). - # - # Otherwise, a later choice may be incompatible with t. - for choice in choices: - if t in choice: - continue - cache = False - break - if cache: - return True - universe = self._universe testing = self._testing cbroken = self._cache_broken