diff mbox series

lib/oe/utils: Drop str_filter and str_filter_out

Message ID 20261119120006.22357-1-richard.purdie@linuxfoundation.org
State Under Review
Headers show
Series lib/oe/utils: Drop str_filter and str_filter_out | expand

Commit Message

Richard Purdie Nov. 19, 2026, noon UTC
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 <richard.purdie@linuxfoundation.org>
---
 dev/null             |  0
 meta/lib/oe/utils.py | 18 ------------------
 2 files changed, 18 deletions(-)
 delete mode 100644 dev/null
diff mbox series

Patch

diff --git a/dev/null b/dev/null
deleted file mode 100644
index e69de29bb2d..00000000000
diff --git a/meta/lib/oe/utils.py b/meta/lib/oe/utils.py
index caa4dd43016..8fa40da2d11 100644
--- a/meta/lib/oe/utils.py
+++ b/meta/lib/oe/utils.py
@@ -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