[bitbake-devel] [PATCH 2/2] events: Drop unused cfg property

Richard Purdie richard.purdie at linuxfoundation.org
Sun Jan 7 12:05:59 UTC 2018


The cfg property on events doesn't add much, all code appears to access
"data" at this point. Remove it to clean up the interface.

Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 lib/bb/event.py | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/lib/bb/event.py b/lib/bb/event.py
index 52072b5..5d00496 100644
--- a/lib/bb/event.py
+++ b/lib/bb/event.py
@@ -449,12 +449,6 @@ class BuildBase(Event):
     def setName(self, name):
         self._name = name
 
-    def getCfg(self):
-        return self.data
-
-    def setCfg(self, cfg):
-        self.data = cfg
-
     def getFailures(self):
         """
         Return the number of failed packages
@@ -463,9 +457,6 @@ class BuildBase(Event):
 
     pkgs = property(getPkgs, setPkgs, None, "pkgs property")
     name = property(getName, setName, None, "name property")
-    cfg = property(getCfg, setCfg, None, "cfg property")
-
-
 
 class BuildInit(BuildBase):
     """buildFile or buildTargets was invoked"""
-- 
2.7.4




More information about the bitbake-devel mailing list