diff --git a/config.go b/config.go index 7022fd202..091dce2c2 100644 --- a/config.go +++ b/config.go @@ -23,7 +23,6 @@ type config struct { PluginMaxPort uint Builders map[string]string - Commands map[string]string PostProcessors map[string]string `json:"post-processors"` Provisioners map[string]string } @@ -82,15 +81,6 @@ func (c *config) Discover() error { return nil } -// Returns an array of defined command names. -func (c *config) CommandNames() (result []string) { - result = make([]string, 0, len(c.Commands)) - for name := range c.Commands { - result = append(result, name) - } - return -} - // This is a proper packer.BuilderFunc that can be used to load packer.Builder // implementations from the defined plugins. func (c *config) LoadBuilder(name string) (packer.Builder, error) { @@ -153,12 +143,6 @@ func (c *config) discover(path string) error { return err } - err = c.discoverSingle( - filepath.Join(path, "packer-command-*"), &c.Commands) - if err != nil { - return err - } - err = c.discoverSingle( filepath.Join(path, "packer-post-processor-*"), &c.PostProcessors) if err != nil {