diff options
author | Zac Medico <zmedico@gentoo.org> | 2008-06-09 14:24:09 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2008-06-09 14:24:09 +0000 |
commit | b2d224da6d06966a79f9c747fb27ea02f9add896 (patch) | |
tree | 4460ca54aec7cdccf5c1003e5bc133eefcf906ec | |
parent | 0c8fc90cb2f0101f60a78953668b391e44d3cdca (diff) | |
download | portage-b2d224da6d06966a79f9c747fb27ea02f9add896.tar.gz portage-b2d224da6d06966a79f9c747fb27ea02f9add896.tar.bz2 portage-b2d224da6d06966a79f9c747fb27ea02f9add896.zip |
Remove unused PackageVirtualDbapi.__getitem__() method.
svn path=/main/trunk/; revision=10612
-rw-r--r-- | pym/_emerge/__init__.py | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py index 68f976cbe..539a9235a 100644 --- a/pym/_emerge/__init__.py +++ b/pym/_emerge/__init__.py @@ -1794,21 +1794,6 @@ class PackageVirtualDbapi(portage.dbapi): return True return False - def __getitem__(self, k): - cpv = getattr(k, "cpv", None) - if cpv is None: - try: - cpv = k[2] - except (TypeError, IndexError): - raise KeyError(k) - if cpv is None: - raise KeyError(k) - existing = self._cpv_map.get(cpv) - if existing is not None and \ - existing == k: - return existing - raise KeyError(k) - def match_pkgs(self, atom): return [self._cpv_map[cpv] for cpv in self.match(atom)] |