]> git.ipfire.org Git - people/jschlag/network.git/commitdiff
hooks_list: Remove duplicate function
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 17 Aug 2017 19:25:24 +0000 (19:25 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 17 Aug 2017 20:06:44 +0000 (20:06 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/functions/functions.hook

index 601baee5c493b45381faaf904c2f1e1b5831ae2e..48f8a5482dfde8fdcbc0a351251e7ff8850e9b06 100644 (file)
@@ -30,22 +30,6 @@ hook_dir() {
 }
 NETWORK_HOOKS_DIR_ZONES="$(hook_dir zone)"
 
-hook_list() {
-       local type="${1}"
-       assert isoneof type port zone
-
-       local dir="$(hook_dir "${type}")"
-       assert isset dir
-
-       local hook
-       for hook in ${dir}/*; do
-               hook_exists "${hook}" || continue
-               print "${hook}"
-       done
-
-       return ${EXIT_OK}
-}
-
 hook_exists() {
        local type=${1}
        local hook=${2}