Skip to content

Commit

Permalink
RuleBaseEditor: rename method _removeConfigLine into _commentConfigLine
Browse files Browse the repository at this point in the history
  • Loading branch information
jouvin committed May 9, 2016
1 parent 23469cb commit c9b50c2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/main/perl/RuleBasedEditor.pm
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,7 @@ sub _buildLinePattern

=pod
=item _removeConfigLine
=item _commentConfigLine
This function comments out a configuration line matching the configuration parameter.
Match operation takes into account the line format.
Expand All @@ -617,9 +617,9 @@ Return value:
=cut

sub _removeConfigLine
sub _commentConfigLine
{
my $function_name = "_removeConfigLine";
my $function_name = "_commentConfigLine";
my ($self, $config_param, $line_fmt) = @_;

unless ($config_param) {
Expand Down Expand Up @@ -968,7 +968,7 @@ sub _apply_rules
# If the keyword was "negated", remove (comment out) configuration line if present and enabled
if ($comment_line) {
*$self->{LOG}->debug(1, "$function_name: keyword '$keyword' negated, removing configuration line");
$self->_removeConfigLine($keyword, $line_fmt);
$self->_commentConfigLine($keyword, $line_fmt);
next;
}

Expand All @@ -989,7 +989,7 @@ sub _apply_rules
} elsif ($rule_info->{remove_matching_lines}) {
if ($rule_parsing_options->{remove_if_undef}) {
*$self->{LOG}->debug(1, "$function_name: removing configuration lines for keyword '$keyword'");
$self->_removeConfigLine($keyword, $line_fmt);
$self->_commentConfigLine($keyword, $line_fmt);
} else {
*$self->{LOG}->debug(1, "$function_name: remove_if_undef not set, ignoring line to remove");
}
Expand Down Expand Up @@ -1042,7 +1042,7 @@ sub _apply_rules
"$function_name: attribute '"
. $rule_info->{attribute}
. "' undefined, removing configuration line");
$self->_removeConfigLine($keyword, $line_fmt);
$self->_commentConfigLine($keyword, $line_fmt);
}
next;
}
Expand Down

0 comments on commit c9b50c2

Please sign in to comment.