[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, experimental, updated. debian/2.6.8-1-844-g7ec39d5

Nick Lewis nick at puppetlabs.com
Tue May 10 08:12:28 UTC 2011


The following commit has been merged in the experimental branch:
commit dd33eac61c4d0baed62eb88bb18dc59e474ba68d
Author: Markus Roberts <Markus at reality.com>
Date:   Thu Oct 21 12:48:50 2010 -0700

    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.

diff --git a/lib/puppet/parser/scope.rb b/lib/puppet/parser/scope.rb
index 24f1d01..53289b8 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

-- 
Puppet packaging for Debian



More information about the Pkg-puppet-devel mailing list