commit:     5c9d2e57efce35f62b3bd00dbc016e0b98b318b1
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Thu May 26 15:02:46 2022 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Mon Jul 18 16:04:07 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5c9d2e57

eutils.eclass: Remove use_if_iuse

Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>

 eclass/eutils.eclass | 15 ++++-----------
 1 file changed, 4 insertions(+), 11 deletions(-)

diff --git a/eclass/eutils.eclass b/eclass/eutils.eclass
index 0b84e3c82c00..e2b3ce0482a9 100644
--- a/eclass/eutils.eclass
+++ b/eclass/eutils.eclass
@@ -74,18 +74,11 @@ path_exists() {
        die "path_exists is banned"
 }
 
-# @FUNCTION: use_if_iuse
-# @USAGE: <flag>
-# @DESCRIPTION:
-# Return true if the given flag is in USE and IUSE.
-#
-# Note that this function should not be used in the global scope.
 use_if_iuse() {
-       eqawarn "use_if_iuse is deprecated."
-       eqawarn "Define it as a local function, or inline it:"
-       eqawarn "    in_iuse foo && use foo"
-       in_iuse $1 || return 1
-       use $1
+       eerror "use_if_iuse has been removed."
+       eerror "Define it as a local function, or inline it:"
+       eerror "    in_iuse foo && use foo"
+       die "use_if_iuse is banned"
 }
 
 # @FUNCTION: eqawarn

Reply via email to