[oe-commits] [bitbake] 04/10: data: Drop deprecated old style bitbake API

git at git.openembedded.org git at git.openembedded.org
Wed Nov 16 11:42:38 UTC 2016


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

commit dff5e1a699bd9964c07571b2d7046c2452409413
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
AuthorDate: Wed Nov 16 11:20:06 2016 +0000

    data: Drop deprecated old style bitbake API
    
    The old style bb.data.getVar/setVar API has long since been deprecated in
    favour of d.getVar/setVar and friends.
    
    Now we're about to change the default expansion parameter, drop the old APIs
    to simplify the transition and ensure everyone is using the new style functions.
    Conversion is trivial if there are remaining stragglers.
    
    I've left bb.data.expand() for now since its more widely used but would make a good
    follow up patch series.
    
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 lib/bb/data.py | 53 -----------------------------------------------------
 1 file changed, 53 deletions(-)

diff --git a/lib/bb/data.py b/lib/bb/data.py
index c56965c..1a2946f 100644
--- a/lib/bb/data.py
+++ b/lib/bb/data.py
@@ -78,59 +78,6 @@ def initVar(var, d):
     """Non-destructive var init for data structure"""
     d.initVar(var)
 
-
-def setVar(var, value, d):
-    """Set a variable to a given value"""
-    d.setVar(var, value)
-
-
-def getVar(var, d, exp = False):
-    """Gets the value of a variable"""
-    return d.getVar(var, exp)
-
-
-def renameVar(key, newkey, d):
-    """Renames a variable from key to newkey"""
-    d.renameVar(key, newkey)
-
-def delVar(var, d):
-    """Removes a variable from the data set"""
-    d.delVar(var)
-
-def appendVar(var, value, d):
-    """Append additional value to a variable"""
-    d.appendVar(var, value)
-
-def setVarFlag(var, flag, flagvalue, d):
-    """Set a flag for a given variable to a given value"""
-    d.setVarFlag(var, flag, flagvalue)
-
-def getVarFlag(var, flag, d):
-    """Gets given flag from given var"""
-    return d.getVarFlag(var, flag, False)
-
-def delVarFlag(var, flag, d):
-    """Removes a given flag from the variable's flags"""
-    d.delVarFlag(var, flag)
-
-def setVarFlags(var, flags, d):
-    """Set the flags for a given variable
-
-    Note:
-        setVarFlags will not clear previous
-        flags. Think of this method as
-        addVarFlags
-    """
-    d.setVarFlags(var, flags)
-
-def getVarFlags(var, d):
-    """Gets a variable's flags"""
-    return d.getVarFlags(var)
-
-def delVarFlags(var, d):
-    """Removes a variable's flags"""
-    d.delVarFlags(var)
-
 def keys(d):
     """Return a list of keys in d"""
     return d.keys()

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


More information about the Openembedded-commits mailing list