[bitbake-devel] [PATCH 1/1] bitbake:cache.py: remove the add()

Robert Yang liezhi.yang at windriver.com
Wed Jan 22 10:55:02 UTC 2014


No one uses the add(), so remove it.

Signed-off-by: Robert Yang <liezhi.yang at windriver.com>
---
 bitbake/lib/bb/cache.py | 13 -------------
 1 file changed, 13 deletions(-)

diff --git a/bitbake/lib/bb/cache.py b/bitbake/lib/bb/cache.py
index 318781b..3486031 100644
--- a/bitbake/lib/bb/cache.py
+++ b/bitbake/lib/bb/cache.py
@@ -630,19 +630,6 @@ class Cache(object):
                 self.cacheclean = False
             self.depends_cache[filename] = info_array
 
-    def add(self, file_name, data, cacheData, parsed=None):
-        """
-        Save data we need into the cache
-        """
-
-        realfn = self.virtualfn2realfn(file_name)[0]
-
-        info_array = []
-        for cache_class in self.caches_array:
-            if type(cache_class) is type and issubclass(cache_class, RecipeInfoCommon):
-                info_array.append(cache_class(realfn, data))
-        self.add_info(file_name, info_array, cacheData, parsed)
-
     @staticmethod
     def load_bbfile(bbfile, appends, config):
         """
-- 
1.8.3.1




More information about the bitbake-devel mailing list