]> git.ipfire.org Git - people/stevee/network.git/commitdiff
Remove some unused code
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 18 Aug 2015 19:24:58 +0000 (21:24 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 18 Aug 2015 19:24:58 +0000 (21:24 +0200)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/functions/functions.ports

index 39c7fb66fa82e23c601d58d4e3121814d0c52f77..8af5619ed96c8763ef791ef3bb1c3579cd6e4711 100644 (file)
@@ -156,29 +156,15 @@ port_is_up() {
 }
 
 port_new() {
-       #local port=${1}
-       #shift
-       #
-       #if port_exists ${port}; then
-       #       error "Port '${port}' does already exist."
-       #       return ${EXIT_ERROR}
-       #fi
-
-       local hook=${1}
+       local hook="${1}"
        shift
 
-       if ! hook_exists port ${hook}; then
+       if ! hook_exists port "${hook}"; then
                error "Port hook '${hook}' does not exist."
                return ${EXIT_ERROR}
        fi
 
-       #port_edit ${port} ${hook} $@
-       #
-       #if [ $? -ne ${EXIT_OK} ]; then
-       #       port_destroy ${port}
-       #fi
-
-       hook_exec port ${hook} new $@
+       hook_exec port "${hook}" new $@
 }
 
 port_destroy() {