repoman: remove unused grouplist function v2.2.0_alpha164
authorZac Medico <zmedico@gentoo.org>
Sat, 2 Mar 2013 03:44:34 +0000 (19:44 -0800)
committerZac Medico <zmedico@gentoo.org>
Sat, 2 Mar 2013 03:44:34 +0000 (19:44 -0800)
bin/repoman

index 07f0adc030b55e5dceb80a261c35782f096886c1..5c58bea69720cb446eec455bff39568a91c18289 100755 (executable)
@@ -2360,22 +2360,6 @@ del console_writer, f, style_file
 qa_output = qa_output.getvalue()
 qa_output = qa_output.splitlines(True)
 
-def grouplist(mylist, seperator="/"):
-       """(list,seperator="/") -- Takes a list of elements; groups them into
-       same initial element categories. Returns a dict of {base:[sublist]}
-       From: ["blah/foo","spork/spatula","blah/weee/splat"]
-       To:   {"blah":["foo","weee/splat"], "spork":["spatula"]}"""
-       mygroups = {}
-       for x in mylist:
-               xs = x.split(seperator)
-               if xs[0] == ".":
-                       xs = xs[1:]
-               if xs[0] not in mygroups:
-                       mygroups[xs[0]] = [seperator.join(xs[1:])]
-               else:
-                       mygroups[xs[0]] += [seperator.join(xs[1:])]
-       return mygroups
-
 suggest_ignore_masked = False
 suggest_include_dev = False