]> git.corax.cc Git - toolbox/commitdiff
utils/ipc-sshtunnel: Remove unused argument `endpoint'
authorMatthias Kruk <m@m10k.eu>
Sat, 8 Oct 2022 06:26:21 +0000 (15:26 +0900)
committerMatthias Kruk <m@m10k.eu>
Sat, 8 Oct 2022 06:26:21 +0000 (15:26 +0900)
The local_to_remote() and local_to_remote() functions in ipc-sshtunnel
take a parameter `endpoint', which is never used.

This commit removes the unused parameter.

utils/ipc-sshtunnel.sh

index 1b6294a03f0b7c550c01167b5247f4bf296edfee..3fcbf60ad41aa4462a74d1ea701191c046e09da2 100755 (executable)
@@ -44,10 +44,9 @@ _array_add() {
 
 local_to_remote() {
        local remote="$1"
-       local endpoint="$2"
-       local -n ref_topics="$3"
-       local -n ref_tap_hooks="$4"
-       local -n ref_inject_hooks="$5"
+       local -n ref_topics="$2"
+       local -n ref_tap_hooks="$3"
+       local -n ref_inject_hooks="$4"
 
        local topic
        local hook
@@ -73,10 +72,9 @@ local_to_remote() {
 
 remote_to_local() {
        local remote="$1"
-       local endpoint="$2"
-       local -n ref_topics="$3"
-       local -n ref_tap_hooks="$4"
-       local -n ref_inject_hooks="$5"
+       local -n ref_topics="$2"
+       local -n ref_tap_hooks="$3"
+       local -n ref_inject_hooks="$4"
 
        local topic
        local hook
@@ -116,7 +114,7 @@ spawn_tunnel() {
 
        local -i tunnel
 
-       if tunnel=$("$tunnel_func" "$remote" "$endpoint" "$ref_topics" "$ref_tap_hooks" "$ref_inject_hooks"); then
+       if tunnel=$("$tunnel_func" "$remote" "$ref_topics" "$ref_tap_hooks" "$ref_inject_hooks"); then
                while inst_running && process_is_running "$tunnel"; do
                        sleep 5
                done