From f74043a89e640f21d2ac07d25df1a3ae63f2a536 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Thu, 17 Aug 2017 19:25:24 +0000 Subject: [PATCH] hooks_list: Remove duplicate function Signed-off-by: Michael Tremer --- src/functions/functions.hook | 16 ---------------- 1 file changed, 16 deletions(-) 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} -- 2.47.2