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

login
register
mail settings
Submitter Robert Yang
Date Jan. 22, 2014, 10:55 a.m.
Message ID <d944b5d90bd21c920b016db2e71688356a96d68f.1390387902.git.liezhi.yang@windriver.com>
Download mbox | patch
Permalink /patch/65533/
State New
Headers show

Comments

Robert Yang - Jan. 22, 2014, 10:55 a.m.
No one uses the add(), so remove it.

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

Patch

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):
         """