Remove unused iter_atoms() function.
authorZac Medico <zmedico@gentoo.org>
Tue, 8 Apr 2008 03:46:51 +0000 (03:46 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 8 Apr 2008 03:46:51 +0000 (03:46 -0000)
svn path=/main/trunk/; revision=9744

pym/_emerge/__init__.py

index 4397545dd2983037d2b31ff0e595dda215d94dc0..86f09af3936897d82557482fc0a4fc8d7aab6125 100644 (file)
@@ -1172,21 +1172,6 @@ def show_masked_packages(masked_packages):
                        shown_licenses.add(l)
        return have_eapi_mask
 
-def iter_atoms(deps):
-       """Take a dependency structure as returned by paren_reduce or use_reduce
-       and iterate over all the atoms."""
-       i = iter(deps)
-       for x in i:
-               if isinstance(x, basestring):
-                       if x == '||' or x.endswith('?'):
-                               for x in iter_atoms(i.next()):
-                                       yield x
-                       else:
-                               yield x
-               else:
-                       for x in iter_atoms(x):
-                               yield x
-
 class Package(object):
        __slots__ = ("__weakref__", "built", "cpv", "depth",
                "installed", "metadata", "root", "onlydeps", "type_name",