From c2627a3229577685a5baef1796f7f5b525fed667 Mon Sep 17 00:00:00 2001 From: Pieter van de Bruggen Date: Mon, 21 Mar 2011 16:53:49 -0700 Subject: (Maint.) Remove Puppet::Interface#unload_interface Reviewed-By: Nick Lewis --- lib/puppet/interface.rb | 4 ---- 1 file changed, 4 deletions(-) (limited to 'lib') diff --git a/lib/puppet/interface.rb b/lib/puppet/interface.rb index 13b1a811b..38841d948 100644 --- a/lib/puppet/interface.rb +++ b/lib/puppet/interface.rb @@ -53,10 +53,6 @@ class Puppet::Interface const_set(constantize(name), instance) end - def self.unload_interface(name) - remove_const(constantize(name)) rescue nil - end - def self.constantize(name) unless name.to_s =~ /^[-_a-z]+$/i then raise ArgumentError, "#{name.inspect} (#{name.class}) is not a valid interface name" -- cgit