From: Michael Tremer Date: Thu, 17 Aug 2017 19:25:24 +0000 (+0000) Subject: hooks_list: Remove duplicate function X-Git-Tag: 010~246 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f74043a89e640f21d2ac07d25df1a3ae63f2a536;p=network.git hooks_list: Remove duplicate function Signed-off-by: Michael Tremer --- diff --git a/src/functions/functions.hook b/src/functions/functions.hook index 601baee5..48f8a548 100644 --- a/src/functions/functions.hook +++ b/src/functions/functions.hook @@ -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}