summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCasey Dahlin <cdahlin@redhat.com>2008-12-29 04:35:08 -0500
committerCasey Dahlin <cdahlin@redhat.com>2008-12-29 04:35:08 -0500
commit1f4da394363e5a26750c5d044deba2762a15cff6 (patch)
tree0f0146069f4b737aed590f2ba81527657d25a0ed
parent8014a46083608f8ad72bd23e1add5c330196ae36 (diff)
downloadupstate-1f4da394363e5a26750c5d044deba2762a15cff6.tar.gz
upstate-1f4da394363e5a26750c5d044deba2762a15cff6.tar.xz
upstate-1f4da394363e5a26750c5d044deba2762a15cff6.zip
Remove goofy-ass intersect_list method
-rw-r--r--statemachine.py14
1 files changed, 0 insertions, 14 deletions
diff --git a/statemachine.py b/statemachine.py
index d6721df..54a325c 100644
--- a/statemachine.py
+++ b/statemachine.py
@@ -58,20 +58,6 @@ class StateMachine:
to_add.add(tup[0])
return to_add
- def intersect_list(self, cats1, cats2):
- """
- Given two lists of categories, return a list of categories such that a
- state appearing in at least one category in each list will appear in at
- least one category in the returned list.
- """
- retval = set()
- for x in cats1:
- for y in cats2:
- inter = x.intersect(y)
- if inter != None:
- retval.add(inter)
- return retval
-
def add_hold(self, cat):
"""
Add a hold to a state. Does not check dependencies.