summaryrefslogtreecommitdiffstats
path: root/lib/puppet/parser/ast/selector.rb
diff options
context:
space:
mode:
authorLuke Kanies <luke@puppetlabs.com>2010-04-09 16:02:32 -0700
committerLuke Kanies <luke@puppetlabs.com>2010-04-09 16:02:32 -0700
commitb643413da520fabb7ee81e8c710e30f43bc1475b (patch)
tree747082b0577b566bbd2bb576d539cb7efebdc2c4 /lib/puppet/parser/ast/selector.rb
parentfe140a283fc51216a460be24c19641e26724c92c (diff)
downloadpuppet-b643413da520fabb7ee81e8c710e30f43bc1475b.tar.gz
puppet-b643413da520fabb7ee81e8c710e30f43bc1475b.tar.xz
puppet-b643413da520fabb7ee81e8c710e30f43bc1475b.zip
Removing any mentions of :casesensitive setting
It is a setting that was added years ago as a backward compatibility option and even if it still works, which is questionable, it has no purpose any longer. It just complicated the code and didn't do much, so it's gone now. Also simplified the interface of Leaf#evaluate_match, since it was now using none of the passed-in options. Finally, removed/migrated the last of the Selector/CaseStatement test/unit tests. Signed-off-by: Luke Kanies <luke@puppetlabs.com>
Diffstat (limited to 'lib/puppet/parser/ast/selector.rb')
-rw-r--r--lib/puppet/parser/ast/selector.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/puppet/parser/ast/selector.rb b/lib/puppet/parser/ast/selector.rb
index ce834b63b..d27773c4b 100644
--- a/lib/puppet/parser/ast/selector.rb
+++ b/lib/puppet/parser/ast/selector.rb
@@ -15,8 +15,6 @@ class Puppet::Parser::AST
# Get our parameter.
paramvalue = @param.safeevaluate(scope)
- sensitive = Puppet[:casesensitive]
-
default = nil
unless @values.instance_of? AST::ASTArray or @values.instance_of? Array
@@ -26,7 +24,7 @@ class Puppet::Parser::AST
# Then look for a match in the options.
@values.each do |obj|
# short circuit asap if we have a match
- return obj.value.safeevaluate(scope) if obj.param.evaluate_match(paramvalue, scope, :file => file, :line => line, :sensitive => sensitive)
+ return obj.value.safeevaluate(scope) if obj.param.evaluate_match(paramvalue, scope)
# Store the default, in case it's necessary.
default = obj if obj.param.is_a?(Default)