diff options
author | Daniel Pittman <daniel@puppetlabs.com> | 2011-04-12 17:21:58 -0700 |
---|---|---|
committer | Daniel Pittman <daniel@puppetlabs.com> | 2011-04-12 17:32:15 -0700 |
commit | 941c56a283265cdf5a951ecaae63580b60486c52 (patch) | |
tree | 4710477aedabdc537081e7b6d2b72ab19a7ea2e6 | |
parent | d748338e69b705585f9ac6bf2fd8da1e9163839b (diff) | |
download | puppet-941c56a283265cdf5a951ecaae63580b60486c52.tar.gz puppet-941c56a283265cdf5a951ecaae63580b60486c52.tar.xz puppet-941c56a283265cdf5a951ecaae63580b60486c52.zip |
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 <lak@puppetlabs.com>
-rw-r--r-- | lib/puppet.rb | 11 |
1 files changed, 3 insertions, 8 deletions
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' |