Skip to contentSkip to conversation

bitbake: cache: remove unused variables.

PATCH New Maxime Roussin-Bélanger 1 participant 2 messages Oct 27, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 bitbake: cache: remove unused variables.

---
 bitbake/lib/bb/cache.py | 2 --
 1 file changed, 2 deletions(-)
bitbake/lib/bb/cache.py +0 -2
index 9e0c931a07..ebb2422496 100644
@@ -449,9 +449,7 @@ class Cache(NoCache):
         return cachesize
 
     def load_cachefile(self, progress):
-        cachesize = self.cachesize()
         previous_progress = 0
-        previous_percent = 0
 
         for cache_class in self.caches_array:
             cachefile = self.getCacheFile(cache_class.cachefile)
Signature · 1 line
2.28.0
#1 lore raw

PATCH 2/2 bitbake: monitordisk: remove unused function parameter

---
 bitbake/lib/bb/monitordisk.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
bitbake/lib/bb/monitordisk.py +2 -2
index e7c07264a8..98f2109ed2 100644
@@ -59,7 +59,7 @@ def getMountedDev(path):
         pass
     return None
 
-def getDiskData(BBDirs, configuration):
+def getDiskData(BBDirs):
 
     """Prepare disk data for disk space monitor"""
 
@@ -168,7 +168,7 @@ class diskMonitor:
 
         BBDirs = configuration.getVar("BB_DISKMON_DIRS") or None
         if BBDirs:
-            self.devDict = getDiskData(BBDirs, configuration)
+            self.devDict = getDiskData(BBDirs)
             if self.devDict:
                 self.spaceInterval, self.inodeInterval = getInterval(configuration)
                 if self.spaceInterval and self.inodeInterval:
Signature · 1 line
2.28.0