[oe-commits] [bitbake] 01/01: events: Drop unused cfg property

git at git.openembedded.org git at git.openembedded.org
Sun Jan 7 12:15:13 UTC 2018


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository bitbake.

commit bd4b9e4460b60f142c3bf346fb04e360e512eaee
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
AuthorDate: Sun Jan 7 11:56:25 2018 +0000

    events: Drop unused cfg property
    
    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"""

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list