From 34a05603b080375f1ec0cccfa613ae24ae79f0f4 Mon Sep 17 00:00:00 2001 From: An-Cheng Huang Date: Wed, 23 Jun 2010 11:30:37 -0700 Subject: remove unused API function --- lib/Vyatta/Config.pm | 29 ----------------------------- 1 file changed, 29 deletions(-) (limited to 'lib/Vyatta') diff --git a/lib/Vyatta/Config.pm b/lib/Vyatta/Config.pm index 2fb938a..be1537b 100755 --- a/lib/Vyatta/Config.pm +++ b/lib/Vyatta/Config.pm @@ -738,35 +738,6 @@ sub isChanged { return (-e $filepath); } -## isChangedOrDeleted("node") -# is the "node" changed or deleted. node is relative. returns true or false -sub isChangedOrDeleted { - my ($self, $node, $disable) = @_; - - $node =~ s/\//%2F/g; - $node =~ s/\s+/\//g; - - my $filepathChg - = "$self->{_changes_only_dir_base}$self->{_current_dir_level}/$node"; - if (-e $filepathChg) { - return 1; - } - - my $filepathAct - = "$self->{_active_dir_base}$self->{_current_dir_level}/$node"; - my $filepathNew - = "$self->{_new_config_dir_base}$self->{_current_dir_level}/$node"; - - if (!defined $disable) { - my ($status,undef) = $self->getDeactivated($self->{_level}." ".$node); - if (defined $status && ($status eq 'active' || $status eq 'local')) { - return (defined $status); - } - } - - return ((-e $filepathAct) && !(-e $filepathNew)); -} - ## isAdded("node") # will compare the new_config_dir to the active_dir to see if the "node" has # been added. returns true or false. -- cgit v1.2.3