summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Roberts <Markus@reality.com>2010-10-21 12:48:50 -0700
committerNick Lewis <nick@puppetlabs.com>2011-04-12 12:47:30 -0700
commitdd33eac61c4d0baed62eb88bb18dc59e474ba68d (patch)
tree916edb17c95f2657715608a7b2e46594e7a28ae3
parent665fabdb3e468d1ef38d689b9cb0d75b9d788f88 (diff)
downloadpuppet-dd33eac61c4d0baed62eb88bb18dc59e474ba68d.tar.gz
puppet-dd33eac61c4d0baed62eb88bb18dc59e474ba68d.tar.xz
puppet-dd33eac61c4d0baed62eb88bb18dc59e474ba68d.zip
Refactor prior to #5063 -- remove dead "topscope?" code
The Scope#topscope? method was never called anywhere (including tests) and so far as I can tell was incorrect as the Scope#level is never being set.
-rw-r--r--lib/puppet/parser/scope.rb5
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/puppet/parser/scope.rb b/lib/puppet/parser/scope.rb
index 24f1d01f7..53289b87d 100644
--- a/lib/puppet/parser/scope.rb
+++ b/lib/puppet/parser/scope.rb
@@ -104,11 +104,6 @@ class Puppet::Parser::Scope
compiler.environment
end
- # Are we the top scope?
- def topscope?
- @level == 1
- end
-
def find_hostclass(name)
known_resource_types.find_hostclass(namespaces, name)
end