summaryrefslogtreecommitdiff
path: root/lib/Vyatta
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2010-06-23 11:30:37 -0700
committerAn-Cheng Huang <ancheng@vyatta.com>2010-06-23 11:30:37 -0700
commit34a05603b080375f1ec0cccfa613ae24ae79f0f4 (patch)
tree7121397bcde5f7e95e7130bba8cc025d7fa323a7 /lib/Vyatta
parent366735512c2cb9773deba1173ee187ceabe9ceb9 (diff)
downloadvyatta-cfg-34a05603b080375f1ec0cccfa613ae24ae79f0f4.tar.gz
vyatta-cfg-34a05603b080375f1ec0cccfa613ae24ae79f0f4.zip
remove unused API function
Diffstat (limited to 'lib/Vyatta')
-rwxr-xr-xlib/Vyatta/Config.pm29
1 files changed, 0 insertions, 29 deletions
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.