Remove helpers which are no longer valid

This commit is contained in:
Chris Roberts 2022-04-25 15:44:22 -07:00
parent 6d45d07f3f
commit 1594545d18

View File

@ -2,7 +2,6 @@ package plugin
import (
"github.com/hashicorp/go-hclog"
"github.com/hashicorp/vagrant-plugin-sdk/component"
"github.com/mitchellh/go-testing-interface"
)
@ -35,30 +34,3 @@ func WithPluginName(name string) PluginProperty {
return
}
}
func WithPluginMinimalComponents(t component.Type, i interface{}) PluginProperty {
return func(p *Plugin) (err error) {
instance := &Instance{
Name: p.Name,
Type: t,
Component: i,
}
if p.components == nil {
p.components = make(map[component.Type]*Instance)
}
p.components[t] = instance
p.Types = append(p.Types, t)
return
}
}
func WithPluginInstance(i *Instance) PluginProperty {
return func(p *Plugin) (err error) {
if p.components == nil {
p.components = make(map[component.Type]*Instance)
}
p.components[i.Type] = i
p.Types = append(p.Types, i.Type)
return
}
}