1 |
Signed-off-by: Ulrich Müller <ulm@g.o> |
2 |
--- |
3 |
eclass/eutils.eclass | 15 ++++----------- |
4 |
1 file changed, 4 insertions(+), 11 deletions(-) |
5 |
|
6 |
diff --git a/eclass/eutils.eclass b/eclass/eutils.eclass |
7 |
index 0b84e3c82c00..e2b3ce0482a9 100644 |
8 |
--- a/eclass/eutils.eclass |
9 |
+++ b/eclass/eutils.eclass |
10 |
@@ -74,18 +74,11 @@ path_exists() { |
11 |
die "path_exists is banned" |
12 |
} |
13 |
|
14 |
-# @FUNCTION: use_if_iuse |
15 |
-# @USAGE: <flag> |
16 |
-# @DESCRIPTION: |
17 |
-# Return true if the given flag is in USE and IUSE. |
18 |
-# |
19 |
-# Note that this function should not be used in the global scope. |
20 |
use_if_iuse() { |
21 |
- eqawarn "use_if_iuse is deprecated." |
22 |
- eqawarn "Define it as a local function, or inline it:" |
23 |
- eqawarn " in_iuse foo && use foo" |
24 |
- in_iuse $1 || return 1 |
25 |
- use $1 |
26 |
+ eerror "use_if_iuse has been removed." |
27 |
+ eerror "Define it as a local function, or inline it:" |
28 |
+ eerror " in_iuse foo && use foo" |
29 |
+ die "use_if_iuse is banned" |
30 |
} |
31 |
|
32 |
# @FUNCTION: eqawarn |
33 |
-- |
34 |
2.35.1 |