Gentoo Archives: gentoo-commits

From: "Ulrich Müller" <ulm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Tue, 26 Nov 2019 19:24:04
Message-Id: 1574796201.2844029a734456ed3d980a95595f6595dab5e794.ulm@gentoo
1 commit: 2844029a734456ed3d980a95595f6595dab5e794
2 Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
3 AuthorDate: Sat Nov 23 11:46:20 2019 +0000
4 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
5 CommitDate: Tue Nov 26 19:23:21 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2844029a
7
8 eutils.eclass: Drop epause() and ebeep().
9
10 No ebuilds calling these functions in EAPIs 0 to 2 are left in the tree.
11
12 Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>
13
14 eclass/eutils.eclass | 49 +------------------------------------------------
15 1 file changed, 1 insertion(+), 48 deletions(-)
16
17 diff --git a/eclass/eutils.eclass b/eclass/eutils.eclass
18 index 7b6336e2aee..20dec774f2f 100644
19 --- a/eclass/eutils.eclass
20 +++ b/eclass/eutils.eclass
21 @@ -1,4 +1,4 @@
22 -# Copyright 1999-2018 Gentoo Foundation
23 +# Copyright 1999-2019 Gentoo Authors
24 # Distributed under the terms of the GNU General Public License v2
25
26 # @ECLASS: eutils.eclass
27 @@ -231,53 +231,6 @@ optfeature() {
28 fi
29 }
30
31 -case ${EAPI:-0} in
32 -0|1|2)
33 -
34 -# @FUNCTION: epause
35 -# @USAGE: [seconds]
36 -# @DESCRIPTION:
37 -# Sleep for the specified number of seconds (default of 5 seconds). Useful when
38 -# printing a message the user should probably be reading and often used in
39 -# conjunction with the ebeep function. If the EPAUSE_IGNORE env var is set,
40 -# don't wait at all. Defined in EAPIs 0 1 and 2.
41 -epause() {
42 - [[ -z ${EPAUSE_IGNORE} ]] && sleep ${1:-5}
43 -}
44 -
45 -# @FUNCTION: ebeep
46 -# @USAGE: [number of beeps]
47 -# @DESCRIPTION:
48 -# Issue the specified number of beeps (default of 5 beeps). Useful when
49 -# printing a message the user should probably be reading and often used in
50 -# conjunction with the epause function. If the EBEEP_IGNORE env var is set,
51 -# don't beep at all. Defined in EAPIs 0 1 and 2.
52 -ebeep() {
53 - local n
54 - if [[ -z ${EBEEP_IGNORE} ]] ; then
55 - for ((n=1 ; n <= ${1:-5} ; n++)) ; do
56 - echo -ne "\a"
57 - sleep 0.1 &>/dev/null ; sleep 0,1 &>/dev/null
58 - echo -ne "\a"
59 - sleep 1
60 - done
61 - fi
62 -}
63 -
64 -;;
65 -*)
66 -
67 -ebeep() {
68 - ewarn "QA Notice: ebeep is not defined in EAPI=${EAPI}, please file a bug at https://bugs.gentoo.org"
69 -}
70 -
71 -epause() {
72 - ewarn "QA Notice: epause is not defined in EAPI=${EAPI}, please file a bug at https://bugs.gentoo.org"
73 -}
74 -
75 -;;
76 -esac
77 -
78 case ${EAPI:-0} in
79 0|1|2|3|4)