[gnome-continuous-yocto/gnomeostree-3.28-rocko: 3362/8267] bitbake: data: Drop deprecated old style bitbake API



commit 30205c7148b86475892720a647163fe2b4a2e009
Author: Richard Purdie <richard purdie linuxfoundation org>
Date:   Wed Nov 16 11:20:06 2016 +0000

    bitbake: 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.
    
    (Bitbake rev: 1825604d46fcd29fad6cfd325f1cb1e1b457d2c9)
    
    Signed-off-by: Richard Purdie <richard purdie linuxfoundation org>

 bitbake/lib/bb/data.py |   53 ------------------------------------------------
 1 files changed, 0 insertions(+), 53 deletions(-)
---
diff --git a/bitbake/lib/bb/data.py b/bitbake/lib/bb/data.py
index c56965c..1a2946f 100644
--- a/bitbake/lib/bb/data.py
+++ b/bitbake/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()


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]