From a709867dee38935f1969d370094ba93abcbcffc5 Mon Sep 17 00:00:00 2001 From: Lars Lehtonen Date: Mon, 4 Nov 2019 12:47:40 -0800 Subject: [PATCH] packer: remove unused testComponentFinder() --- packer/core_test.go | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/packer/core_test.go b/packer/core_test.go index 6df55a47a..bf65f0ffa 100644 --- a/packer/core_test.go +++ b/packer/core_test.go @@ -670,17 +670,6 @@ func TestSensitiveVars(t *testing.T) { } } -func testComponentFinder() *ComponentFinder { - builderFactory := func(n string) (Builder, error) { return new(MockBuilder), nil } - ppFactory := func(n string) (PostProcessor, error) { return new(MockPostProcessor), nil } - provFactory := func(n string) (Provisioner, error) { return new(MockProvisioner), nil } - return &ComponentFinder{ - Builder: builderFactory, - PostProcessor: ppFactory, - Provisioner: provFactory, - } -} - func testCoreTemplate(t *testing.T, c *CoreConfig, p string) { tpl, err := template.ParseFile(p) if err != nil {