Remove the deprecated 'clone' parameter from the portagetree constructor.
authorZac Medico <zmedico@gentoo.org>
Tue, 2 Mar 2010 20:32:42 +0000 (20:32 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 2 Mar 2010 20:32:42 +0000 (20:32 -0000)
(trunk r15378)

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

pym/portage/dbapi/porttree.py

index 830cef4a5b3bbe82dccdf7c952a78a72b79d1f6d..a4cf16fc056755729863bf579994099a14aec784 100644 (file)
@@ -1176,7 +1176,7 @@ def close_portdbapi_caches():
                i.close_caches()
 
 class portagetree(object):
-       def __init__(self, root="/", virtual=None, clone=None, settings=None):
+       def __init__(self, root="/", virtual=None, settings=None):
                """
                Constructor for a PortageTree
                
@@ -1184,19 +1184,11 @@ class portagetree(object):
                @type root: String/Path
                @param virtual: UNUSED
                @type virtual: No Idea
-               @param clone: Set this if you want a copy of Clone
-               @type clone: Existing portagetree Instance
                @param settings: Portage Configuration object (portage.settings)
                @type settings: Instance of portage.config
                """
 
-               if clone:
-                       writemsg("portagetree.__init__(): deprecated " + \
-                               "use of clone parameter\n", noiselevel=-1)
-                       self.root = clone.root
-                       self.portroot = clone.portroot
-                       self.pkglines = clone.pkglines
-               else:
+               if True:
                        self.root = root
                        if settings is None:
                                from portage import settings