diff options
author | Ross Burton <ross.burton@intel.com> | 2017-11-30 10:58:13 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-12-02 11:24:38 +0000 |
commit | a7cd9d1183be603777fc9c8c448281fe01224f7b (patch) | |
tree | 18bb12a392da7d2a06f88f4d9abcf3b4afd90664 /meta | |
parent | a6e34b6aa194a27db9667af1fb0195ac8fb563f5 (diff) | |
download | openembedded-core-contrib-a7cd9d1183be603777fc9c8c448281fe01224f7b.tar.gz |
lib/oe/utils: remove param_bool()
This function is not used by any classes or recipes that I can find, so lets
delete it.
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/lib/oe/utils.py | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/meta/lib/oe/utils.py b/meta/lib/oe/utils.py index 643ab78df7a..1897c5faea0 100644 --- a/meta/lib/oe/utils.py +++ b/meta/lib/oe/utils.py @@ -86,17 +86,6 @@ def str_filter_out(f, str, d): from re import match return " ".join([x for x in str.split() if not match(f, x, 0)]) -def param_bool(cfg, field, dflt = None): - """Lookup <field> in <cfg> map and convert it to a boolean; take - <dflt> when this <field> does not exist""" - value = cfg.get(field, dflt) - strvalue = str(value).lower() - if strvalue in ('yes', 'y', 'true', 't', '1'): - return True - elif strvalue in ('no', 'n', 'false', 'f', '0'): - return False - raise ValueError("invalid value for boolean parameter '%s': '%s'" % (field, value)) - def build_depends_string(depends, task): """Append a taskname to a string of dependencies as used by the [depends] flag""" return " ".join(dep + ":" + task for dep in depends.split()) |