diff options
-rw-r--r-- | pym/portage/dep.py | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/pym/portage/dep.py b/pym/portage/dep.py index fec15332f..da0bb6427 100644 --- a/pym/portage/dep.py +++ b/pym/portage/dep.py @@ -629,8 +629,6 @@ def best_match_to_list(mypkg, mylist): bestm = x return bestm -_match_from_list_cache = {} - def match_from_list(mydep, candidate_list): """ Searches list for entries that matches the package. @@ -643,12 +641,6 @@ def match_from_list(mydep, candidate_list): @return: A list of package atoms that match the given package atom """ - global _match_from_list_cache - cache_key = (mydep, tuple(candidate_list)) - mylist = _match_from_list_cache.get(cache_key, None) - if mylist is not None: - return mylist[:] - from portage.util import writemsg if mydep[0] == "!": mydep = mydep[1:] @@ -752,5 +744,4 @@ def match_from_list(mydep, candidate_list): continue mylist.append(x) - _match_from_list_cache[cache_key] = mylist - return mylist[:] + return mylist |