From: Michael Tremer Date: Sun, 28 Dec 2014 00:05:22 +0000 (+0000) Subject: Remove unused port_show() function X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=76be48f287c4176e1a68ae34a355a2db4facb1bb;p=people%2Fstevee%2Fnetwork.git Remove unused port_show() function --- diff --git a/src/functions/functions.hook b/src/functions/functions.hook index 3d79ed22..90532973 100644 --- a/src/functions/functions.hook +++ b/src/functions/functions.hook @@ -248,7 +248,7 @@ function hook_valid_command_zone() { ;; # Ports - port_attach|port_detach|port_edit|port_create|port_remove|port_show|port_status|port_up|port_down) + port_attach|port_detach|port_edit|port_create|port_remove|port_status|port_up|port_down) return ${EXIT_TRUE} ;; diff --git a/src/functions/functions.ports b/src/functions/functions.ports index 58f60cd1..a6370913 100644 --- a/src/functions/functions.ports +++ b/src/functions/functions.ports @@ -205,11 +205,6 @@ function port_edit() { port_cmd edit $@ } -# XXX? Compatibility function -function port_show() { - port_status $@ -} - function port_up() { port_cmd up $@ } diff --git a/src/header-zone b/src/header-zone index f8a06d84..db579965 100644 --- a/src/header-zone +++ b/src/header-zone @@ -114,10 +114,6 @@ function hook_port_edit() { return ${EXIT_NOT_SUPPORTED} } -function hook_port_show() { - cmd_not_implemented -} - function hook_port_status() { return ${EXIT_NOT_SUPPORTED} }