diff options
author | Harald Musum <musum@verizonmedia.com> | 2021-03-12 20:11:10 +0100 |
---|---|---|
committer | Harald Musum <musum@verizonmedia.com> | 2021-03-12 20:11:10 +0100 |
commit | 6805f97c577deb61f62ea4d9e16289cc884f49cc (patch) | |
tree | ef35a627fad3e73a7842d543062d49f4135ae33a /config/src/apps | |
parent | 320fc26df5e310df2e433fc7005fa8da61a46548 (diff) |
Remove unused options
Diffstat (limited to 'config/src/apps')
-rwxr-xr-x | config/src/apps/vespa-config/vespa-config.pl | 33 |
1 files changed, 2 insertions, 31 deletions
diff --git a/config/src/apps/vespa-config/vespa-config.pl b/config/src/apps/vespa-config/vespa-config.pl index 7568ac13780..f460d1067cb 100755 --- a/config/src/apps/vespa-config/vespa-config.pl +++ b/config/src/apps/vespa-config/vespa-config.pl @@ -1,5 +1,5 @@ #!/usr/bin/env perl -# Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. +# Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. # # Various small functions used when bootstrapping the config system @@ -189,26 +189,6 @@ sub getConfigServers { return @ret; } -sub getZKPort { - my $zk_client_port = getCCSVar('zookeeper_clientPort', 2181); - return $zk_client_port; -} -sub getZKString { - my $zk_client_port = getZKPort(); - my $out; - my $addr; - foreach $addr (getConfigServers()) { - $addr =~ s{:\d+}{:$zk_client_port,}; - $out .= $addr; - } - chop($out); # last comma - return $out; -} - -sub printZKString { - my $out = getZKString(); - print $out . "\n"; -} sub printAllConfigSourcesWithPort { my $cfport = getConfigServerPort(); @@ -275,7 +255,7 @@ sub getLastLine { sub usage { print "usage: "; - print "vespa-config [-configsources | -confighttpsources | -zkstring | -configserverport | -zkclientport]\n"; + print "vespa-config [-configsources | -confighttpsources | -configserverport]\n"; } if ( @ARGV == 0 ) { @@ -296,20 +276,11 @@ if ( $ARGV[0] eq "-confighttpsources" ) { printConfigHttpSources(); exit 0; } -if ( $ARGV[0] eq "-zkstring" ) { - printZKString(); - exit 0; -} if ( $ARGV[0] eq "-configserverport" ) { $lookupInConfig = 1; printConfigServerPort(); exit 0; } -if ( $ARGV[0] eq "-zkclientport" ) { - my $zk_client_port = getZKPort(); - print "$zk_client_port\n"; - exit 0; -} usage(); exit 1; |