From: Zac Medico Date: Tue, 8 Apr 2008 03:46:51 +0000 (-0000) Subject: Remove unused iter_atoms() function. X-Git-Tag: v2.2_pre6~225 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=91397dc1eb573b95209680fd48bb965294a6d690;p=portage.git Remove unused iter_atoms() function. svn path=/main/trunk/; revision=9744 --- diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py index 4397545dd..86f09af39 100644 --- a/pym/_emerge/__init__.py +++ b/pym/_emerge/__init__.py @@ -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",