diff options
author | Chris Larson <chris_larson@mentor.com> | 2010-04-11 16:39:24 -0700 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-07-02 15:41:33 +0100 |
commit | d5927a70bb8de5f2fbabdcf6405ca6129ffb2c17 (patch) | |
tree | 3d6851c9b51fdb0300bda44d5c03b1978ea04f71 /bitbake/lib | |
parent | ba6df176e3086ccd298f91befa8c09fc1834ad76 (diff) | |
download | poky-d5927a70bb8de5f2fbabdcf6405ca6129ffb2c17.tar.gz |
Drop unused bb.data.expandData function
(Bitbake rev: 188af3ef5fdb5cd86b74147bf5eafc085ac489be)
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake/lib')
-rw-r--r-- | bitbake/lib/bb/data.py | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/bitbake/lib/bb/data.py b/bitbake/lib/bb/data.py index e11fe9833e..85de6bfeb3 100644 --- a/bitbake/lib/bb/data.py +++ b/bitbake/lib/bb/data.py | |||
@@ -157,22 +157,6 @@ def expandKeys(alterdata, readdata = None): | |||
157 | ekey = todolist[key] | 157 | ekey = todolist[key] |
158 | renameVar(key, ekey, alterdata) | 158 | renameVar(key, ekey, alterdata) |
159 | 159 | ||
160 | def expandData(alterdata, readdata = None): | ||
161 | """For each variable in alterdata, expand it, and update the var contents. | ||
162 | Replacements use data from readdata | ||
163 | """ | ||
164 | if readdata == None: | ||
165 | readdata = alterdata | ||
166 | |||
167 | for key in keys(alterdata): | ||
168 | val = getVar(key, alterdata) | ||
169 | if type(val) is not types.StringType: | ||
170 | continue | ||
171 | expanded = expand(val, readdata) | ||
172 | # print "key is %s, val is %s, expanded is %s" % (key, val, expanded) | ||
173 | if val != expanded: | ||
174 | setVar(key, expanded, alterdata) | ||
175 | |||
176 | def inheritFromOS(d): | 160 | def inheritFromOS(d): |
177 | """Inherit variables from the environment.""" | 161 | """Inherit variables from the environment.""" |
178 | for s in os.environ.keys(): | 162 | for s in os.environ.keys(): |