From 941c56a283265cdf5a951ecaae63580b60486c52 Mon Sep 17 00:00:00 2001 From: Daniel Pittman Date: Tue, 12 Apr 2011 17:21:58 -0700 Subject: maint: eliminate deprecated since 2008 code from Puppet. We had some code that had been deprecated back in '08, and is unused in our code. For this next release that is past due to be removed from the product entirely. Reviewed-By: Luke Kaines --- lib/puppet.rb | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'lib') diff --git a/lib/puppet.rb b/lib/puppet.rb index ef5fb7f06..401cecc25 100644 --- a/lib/puppet.rb +++ b/lib/puppet.rb @@ -141,17 +141,12 @@ module Puppet end end - # Create a new type. Just proxy to the Type class. + # Create a new type. Just proxy to the Type class. The mirroring query + # code was deprecated in 2008, but this is still in heavy use. I suppose + # this can count as a soft deprecation for the next dev. --daniel 2011-04-12 def self.newtype(name, options = {}, &block) Puppet::Type.newtype(name, options, &block) end - - # Retrieve a type by name. Just proxy to the Type class. - def self.type(name) - # LAK:DEP Deprecation notice added 12/17/2008 - Puppet.warning "Puppet.type is deprecated; use Puppet::Type.type" - Puppet::Type.type(name) - end end require 'puppet/type' -- cgit