From 9cba88b711bada238cc93f98bca7dedf2b4c8dac Mon Sep 17 00:00:00 2001 From: Fabio Rehm Date: Mon, 16 Sep 2013 16:30:57 -0300 Subject: [PATCH] Remove dead code --- lib/vagrant/machine.rb | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/lib/vagrant/machine.rb b/lib/vagrant/machine.rb index b36123a4d..287161365 100644 --- a/lib/vagrant/machine.rb +++ b/lib/vagrant/machine.rb @@ -315,26 +315,5 @@ module Vagrant raise Errors::MachineStateInvalid if !result.is_a?(MachineState) result end - - protected - - # Given a guest name (such as `:windows`), this will load the associated - # guest implementation and return an instance. - # - # @param [Symbol] guest The name of the guest implementation. - # @return [Object] - def load_guest(guest) - @logger.info("Loading guest: #{guest}") - - klass = Vagrant.plugin("2").manager.guests[guest] - - if klass.nil? - raise Errors::VMGuestError, - :_key => :unknown_type, - :guest => guest.to_s - end - - return klass.new(self) - end end end