Remove the deprecated 'clone' parameter to the binarytree constructor.
authorZac Medico <zmedico@gentoo.org>
Tue, 2 Mar 2010 20:32:09 +0000 (20:32 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 2 Mar 2010 20:32:09 +0000 (20:32 -0000)
(trunk r15375)

svn path=/main/branches/2.1.7/; revision=15602

pym/portage/dbapi/bintree.py

index 3062e4bfe86b1eb6e641cc189f0546f69e23d406..f3b7b00de73886fe9f7ab7f9ac52beff1bb27cad 100644 (file)
@@ -150,20 +150,8 @@ class bindbapi(fakedbapi):
 
 class binarytree(object):
        "this tree scans for a list of all packages available in PKGDIR"
-       def __init__(self, root, pkgdir, virtual=None, settings=None, clone=None):
-               if clone:
-                       writemsg("binartree.__init__(): deprecated " + \
-                               "use of clone parameter\n", noiselevel=-1)
-                       # XXX This isn't cloning. It's an instance of the same thing.
-                       self.root = clone.root
-                       self.pkgdir = clone.pkgdir
-                       self.dbapi = clone.dbapi
-                       self.populated = clone.populated
-                       self.tree = clone.tree
-                       self.remotepkgs = clone.remotepkgs
-                       self.invalids = clone.invalids
-                       self.settings = clone.settings
-               else:
+       def __init__(self, root, pkgdir, virtual=None, settings=None):
+               if True:
                        self.root = root
                        #self.pkgdir=settings["PKGDIR"]
                        self.pkgdir = normalize_path(pkgdir)