From 22613192d2b3a9226fa9454120df03f327880ebb Mon Sep 17 00:00:00 2001 From: An-Cheng Huang Date: Thu, 22 Jul 2010 12:12:48 -0700 Subject: remove unused options * high-level operations should not access CLI implementation details. --- scripts/system/vyatta_update_resolv.pl | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/scripts/system/vyatta_update_resolv.pl b/scripts/system/vyatta_update_resolv.pl index a4e2b9ba..f39dd3e7 100755 --- a/scripts/system/vyatta_update_resolv.pl +++ b/scripts/system/vyatta_update_resolv.pl @@ -28,23 +28,12 @@ use lib "/opt/vyatta/share/perl5/"; use Getopt::Long; -my $change_dir = ''; -my $modify_dir = ''; my $dhclient_script = 0; -GetOptions("change_dir=s" => \$change_dir, "modify_dir=s" => \$modify_dir, "dhclient-script=i" => \$dhclient_script ); - +GetOptions("dhclient-script=i" => \$dhclient_script); use Vyatta::Config; my $vc = new Vyatta::Config(); -if ($change_dir ne '') { - $vc->{_changes_only_dir_base} = $change_dir; -} -if ($modify_dir ne '') { - $vc->{_new_config_dir_base} = $modify_dir; -} - - $vc->setLevel('system'); my @domains; my $domain_name = undef; -- cgit v1.2.3