diff mbox series

[1/4] cache: Drop unused function

Message ID 20240812155335.904273-1-richard.purdie@linuxfoundation.org
State Accepted, archived
Commit 6b24efc0f4d19738d96754280e70bc493005167d
Headers show
Series [1/4] cache: Drop unused function | expand

Commit Message

Richard Purdie Aug. 12, 2024, 3:53 p.m. UTC
I can't spot any users of this function and it is poking at variables
inside cooker that could and are about to change so drop it.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
 lib/bb/cache.py | 19 -------------------
 1 file changed, 19 deletions(-)
diff mbox series

Patch

diff --git a/lib/bb/cache.py b/lib/bb/cache.py
index 4a96f5b313..c48feb7138 100644
--- a/lib/bb/cache.py
+++ b/lib/bb/cache.py
@@ -779,25 +779,6 @@  class MulticonfigCache(Mapping):
         for k in self.__caches:
             yield k
 
-def init(cooker):
-    """
-    The Objective: Cache the minimum amount of data possible yet get to the
-    stage of building packages (i.e. tryBuild) without reparsing any .bb files.
-
-    To do this, we intercept getVar calls and only cache the variables we see
-    being accessed. We rely on the cache getVar calls being made for all
-    variables bitbake might need to use to reach this stage. For each cached
-    file we need to track:
-
-    * Its mtime
-    * The mtimes of all its dependencies
-    * Whether it caused a parse.SkipRecipe exception
-
-    Files causing parsing errors are evicted from the cache.
-
-    """
-    return Cache(cooker.configuration.data, cooker.configuration.data_hash)
-
 
 class CacheData(object):
     """