Remove unused filter_phases, filter_mergephases, and filter_unmergephases v2.1.7.11
authorZac Medico <zmedico@gentoo.org>
Mon, 7 Dec 2009 02:54:30 +0000 (02:54 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 7 Dec 2009 02:54:30 +0000 (02:54 -0000)
functions. (trunk r14958)

svn path=/main/branches/2.1.7/; revision=14960

pym/portage/elog/filtering.py

index d4d405347d9eaa2c5db72729a69ffdab6aaff44f..d834edd3aaa740001e5ea61b39ce3ed74d1404bc 100644 (file)
@@ -16,23 +16,3 @@ def filter_loglevels(logentries, loglevels):
                                        rValue[phase] = []
                                rValue[phase].append((msgtype, msgcontent))
        return rValue
-       
-def filter_phases(logentries, phases):
-       rValue1 = {}
-       rValue2 = {}
-       phases = [x.lower() for x in phases]
-       for phase in logentries:
-               if phase in phases:
-                       rValue1[phase] = logentries[phase]
-               else:
-                       rValue2[phase] = logentries[phase]
-       return (rValue1, rValue2)
-
-def filter_mergephases(logentries):
-       myphases = EBUILD_PHASES[:]
-       myphases.remove("prerm")
-       myphases.remove("postrm")
-       return filter_phases(logentries, myphases)
-
-def filter_unmergephases(logentries):
-       return filter_phases(logentries, ["prerm", "postrm", "other"])