diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-11-16 11:20:06 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-11-23 10:59:56 +0000 |
commit | 30205c7148b86475892720a647163fe2b4a2e009 (patch) | |
tree | b0a3a311a4adb245dfc4967e3b90d6b7b5077472 /bitbake/lib/bb/data.py | |
parent | 8de811ae76f8a5bc160e3e3f72da3a5e08b6ca1a (diff) | |
download | poky-30205c7148b86475892720a647163fe2b4a2e009.tar.gz |
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>
Diffstat (limited to 'bitbake/lib/bb/data.py')
-rw-r--r-- | 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 c56965c602..1a2946f943 100644 --- a/bitbake/lib/bb/data.py +++ b/bitbake/lib/bb/data.py | |||
@@ -78,59 +78,6 @@ def initVar(var, d): | |||
78 | """Non-destructive var init for data structure""" | 78 | """Non-destructive var init for data structure""" |
79 | d.initVar(var) | 79 | d.initVar(var) |
80 | 80 | ||
81 | |||
82 | def setVar(var, value, d): | ||
83 | """Set a variable to a given value""" | ||
84 | d.setVar(var, value) | ||
85 | |||
86 | |||
87 | def getVar(var, d, exp = False): | ||
88 | """Gets the value of a variable""" | ||
89 | return d.getVar(var, exp) | ||
90 | |||
91 | |||
92 | def renameVar(key, newkey, d): | ||
93 | """Renames a variable from key to newkey""" | ||
94 | d.renameVar(key, newkey) | ||
95 | |||
96 | def delVar(var, d): | ||
97 | """Removes a variable from the data set""" | ||
98 | d.delVar(var) | ||
99 | |||
100 | def appendVar(var, value, d): | ||
101 | """Append additional value to a variable""" | ||
102 | d.appendVar(var, value) | ||
103 | |||
104 | def setVarFlag(var, flag, flagvalue, d): | ||
105 | """Set a flag for a given variable to a given value""" | ||
106 | d.setVarFlag(var, flag, flagvalue) | ||
107 | |||
108 | def getVarFlag(var, flag, d): | ||
109 | """Gets given flag from given var""" | ||
110 | return d.getVarFlag(var, flag, False) | ||
111 | |||
112 | def delVarFlag(var, flag, d): | ||
113 | """Removes a given flag from the variable's flags""" | ||
114 | d.delVarFlag(var, flag) | ||
115 | |||
116 | def setVarFlags(var, flags, d): | ||
117 | """Set the flags for a given variable | ||
118 | |||
119 | Note: | ||
120 | setVarFlags will not clear previous | ||
121 | flags. Think of this method as | ||
122 | addVarFlags | ||
123 | """ | ||
124 | d.setVarFlags(var, flags) | ||
125 | |||
126 | def getVarFlags(var, d): | ||
127 | """Gets a variable's flags""" | ||
128 | return d.getVarFlags(var) | ||
129 | |||
130 | def delVarFlags(var, d): | ||
131 | """Removes a variable's flags""" | ||
132 | d.delVarFlags(var) | ||
133 | |||
134 | def keys(d): | 81 | def keys(d): |
135 | """Return a list of keys in d""" | 82 | """Return a list of keys in d""" |
136 | return d.keys() | 83 | return d.keys() |