From dd33eac61c4d0baed62eb88bb18dc59e474ba68d Mon Sep 17 00:00:00 2001 From: Markus Roberts Date: Thu, 21 Oct 2010 12:48:50 -0700 Subject: 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. --- lib/puppet/parser/scope.rb | 5 ----- 1 file changed, 5 deletions(-) (limited to 'lib/puppet/parser') 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 -- cgit