]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
bitbake: events: Drop unused cfg property
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 7 Jan 2018 11:56:25 +0000 (11:56 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 8 Jan 2018 08:48:54 +0000 (08:48 +0000)
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.

(Bitbake rev: bd4b9e4460b60f142c3bf346fb04e360e512eaee)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/lib/bb/event.py

index 52072b58050b475a5eab1e464815910de4855a30..5d0049626d549629a2724559c08d4355a7f59dc4 100644 (file)
@@ -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"""