diff --git a/plugins/commands/serve/mappers/provisioner.rb b/plugins/commands/serve/mappers/provisioner.rb index 181491133..5447e2d69 100644 --- a/plugins/commands/serve/mappers/provisioner.rb +++ b/plugins/commands/serve/mappers/provisioner.rb @@ -15,35 +15,6 @@ module VagrantPlugins Client::Provisioner.load(proto, broker: broker) end end - - class GeneralConfigFromSpec < Mapper - def initialize - inputs = [].tap do |i| - i << Input.new(type: SDK::FuncSpec::Value) { |arg| - arg.type == "hashicorp.vagrant.sdk.Vagrantfile.GeneralConfig" && - !arg&.value&.value.nil? - } - end - super(inputs: inputs, output: SDK::Vagrantfile::GeneralConfig, func: method(:converter)) - end - - def converter(proto) - proto.value.unpack(SDK::Vagrantfile::GeneralConfig) - end - end - - class ConfigToProto < Mapper - def initialize - inputs = [].tap do |i| - i << Input.new(type: Vagrant::Plugin::V2::Config) - end - super(inputs: inputs, output: SDK::Vagrantfile::GeneralConfig, func: method(:converter)) - end - - def converter(config) - config.to_proto(config.class.to_s) - end - end end end end