Remove unused PackageVirtualDbapi.__getitem__() method.
authorZac Medico <zmedico@gentoo.org>
Mon, 9 Jun 2008 14:24:09 +0000 (14:24 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 9 Jun 2008 14:24:09 +0000 (14:24 -0000)
svn path=/main/trunk/; revision=10612

pym/_emerge/__init__.py

index 68f976cbe21b03418db48ffff1a529bdf1469a48..539a9235a4349fbae178654d51357fc28bb0eddc 100644 (file)
@@ -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)]