commit: a8bf1158974984c91ccbe8c83c74f41c7c51337d
Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
AuthorDate: Sat Jan 9 02:03:04 2016 +0000
Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
CommitDate: Sat Jan 9 02:03:04 2016 +0000
URL: https://gitweb.gentoo.org/proj/eselect-php.git/commit/?id=a8bf1158
Remove superfluous list_foo() functions.
src/php.eselect.in | 25 +++----------------------
1 file changed, 3 insertions(+), 22 deletions(-)
diff --git a/src/php.eselect.in b/src/php.eselect.in
index efd52c2..26c43d8 100644
--- a/src/php.eselect.in
+++ b/src/php.eselect.in
@@ -412,26 +412,6 @@ list_sapi() {
write_numbered_list -m "(none found)" "${targets[@]}"
}
-list_apache2() {
- list_sapi apache2
-}
-
-list_cli() {
- list_sapi cli
-}
-
-list_cgi() {
- list_sapi cgi
-}
-
-list_fpm() {
- list_sapi fpm
-}
-
-list_dbg() {
- list_sapi dbg
-}
-
# Perform the "set" action for the given SAPI.
#
@@ -545,8 +525,9 @@ describe_list_options() {
}
do_list() {
- check_module $1
- list_$1
+ local sapi="${1}"
+ check_module "${sapi}"
+ list_sapi "${sapi}"
}
## Show action