[pkginfo] Remove unused parameter
authorNsukami Patrick <ptrck at nskm dot xyz>
Fri, 22 Nov 2019 12:06:52 +0000
changeset 12783 842939e69f3a
parent 12782 ea8801f10a72
child 12784 894d0fd94f73
[pkginfo] Remove unused parameter To retrieve cube dependencies or cube requirements, no more need to pass the 'oldkey' parameter to _cube_deps function as this parameter is unused.
cubicweb/cwconfig.py
--- a/cubicweb/cwconfig.py	Fri Nov 29 15:32:31 2019 +0100
+++ b/cubicweb/cwconfig.py	Fri Nov 22 12:06:52 2019 +0000
@@ -498,7 +498,7 @@
         return Version(version)
 
     @classmethod
-    def _cube_deps(cls, cube, key, oldkey):
+    def _cube_deps(cls, cube, key):
         """return cubicweb cubes used by the given cube"""
         pkginfo = cls.cube_pkginfo(cube)
         try:
@@ -536,12 +536,12 @@
     @classmethod
     def cube_dependencies(cls, cube):
         """return cubicweb cubes used by the given cube"""
-        return cls._cube_deps(cube, '__depends_cubes__', '__use__')
+        return cls._cube_deps(cube, '__depends_cubes__')
 
     @classmethod
     def cube_recommends(cls, cube):
         """return cubicweb cubes recommended by the given cube"""
-        return cls._cube_deps(cube, '__recommends_cubes__', '__recommend__')
+        return cls._cube_deps(cube, '__recommends_cubes__')
 
     @classmethod
     def expand_cubes(cls, cubes, with_recommends=False):