diff options
author | Michael Orlitzky <mjo@gentoo.org> | 2016-01-08 21:03:04 -0500 |
---|---|---|
committer | Michael Orlitzky <mjo@gentoo.org> | 2016-01-08 21:03:04 -0500 |
commit | a8bf1158974984c91ccbe8c83c74f41c7c51337d (patch) | |
tree | 3aebf6dca488beab6643fb43174095508f0a87c2 | |
parent | Rename "phpdbg" to "dbg" for consistency and to fix its show action. (diff) | |
download | eselect-php-a8bf1158974984c91ccbe8c83c74f41c7c51337d.tar.gz eselect-php-a8bf1158974984c91ccbe8c83c74f41c7c51337d.tar.bz2 eselect-php-a8bf1158974984c91ccbe8c83c74f41c7c51337d.zip |
Remove superfluous list_foo() functions.
-rw-r--r-- | src/php.eselect.in | 25 |
1 files 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 |