Skip to contentSkip to conversation

lib/oe/utils: Drop str_filter and str_filter_out

PATCH New Richard Purdie 1 participant 1 message Nov 19

lore
Share & tools
lore
#0 lore raw

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.

---
 dev/null             |  0
 meta/lib/oe/utils.py | 18 ------------------
 2 files changed, 18 deletions(-)
 delete mode 100644 dev/null
dev/null deleted +0 -0
deleted file mode 100644
index e69de29bb2d..00000000000
meta/lib/oe/utils.py +0 -18
index caa4dd43016..8fa40da2d11 100644
@@ -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