lib/oe/utils: Drop str_filter and str_filter_out
PATCH 1/1 lib/oe/utils: Drop str_filter and str_filter_out
Nothing in core uses them and we have other filter operations now which interact better with the datastore, drop the obsolete funcitons.
Signed-off-by Richard Purdie <[email protected]>
--- dev/null | 0 meta/lib/oe/utils.py | 18 ------------------ 2 files changed, 18 deletions(-) delete mode 100644 dev/null
dev/null deleted +0 -0
meta/lib/oe/utils.py +0 -18
@@ -198,24 +198,6 @@ def prune_suffix(var, suffixes, d): return var -def str_filter(f, str): - """ - Take ``str``, as a space-separated list of values, and return a - space-separated list of all the values matching the regular expression ``f`` - using :py:func:`re.match`. - """ - from re import match - return " ".join([x for x in str.split() if match(f, x, 0)]) - -def str_filter_out(f, str): - """ - Take ``str``, as a space-separated list of values, and return a - space-separated list of all the values *not* matching the regular expression ``f`` - using :py:func:`re.match`. - """ - from re import match - return " ".join([x for x in str.split() if not match(f, x, 0)]) - def build_depends_string(depends, task): """ Append a taskname ``task`` to a space-separated list of dependencies stored in