diff --git a/command/meta.go b/command/meta.go index a58a858a0..a6bdded50 100644 --- a/command/meta.go +++ b/command/meta.go @@ -143,10 +143,6 @@ func (m *Meta) contextOpts() *terraform.ContextOpts { } opts.Variables = vs opts.UIInput = m.UIInput() - opts.UIOutput = &UIOutput{ - Colorize: m.Colorize(), - Ui: m.Ui, - } return &opts } diff --git a/command/ui_output.go b/command/ui_output.go deleted file mode 100644 index 32cde2ef9..000000000 --- a/command/ui_output.go +++ /dev/null @@ -1,28 +0,0 @@ -package command - -import ( - "sync" - - "github.com/mitchellh/cli" - "github.com/mitchellh/colorstring" -) - -// UIOutput is an implementation of terraform.UIOutput. -type UIOutput struct { - Colorize *colorstring.Colorize - Ui cli.Ui - - once sync.Once - ui cli.Ui -} - -func (u *UIOutput) Output(v string) { - u.once.Do(u.init) - u.ui.Output(v) -} - -func (u *UIOutput) init() { - // Wrap the ui so that it is safe for concurrency regardless of the - // underlying reader/writer that is in place. - u.ui = &cli.ConcurrentUi{Ui: u.Ui} -} diff --git a/command/ui_output_test.go b/command/ui_output_test.go deleted file mode 100644 index bff073e86..000000000 --- a/command/ui_output_test.go +++ /dev/null @@ -1,11 +0,0 @@ -package command - -import ( - "testing" - - "github.com/hashicorp/terraform/terraform" -) - -func TestUIOutput_impl(t *testing.T) { - var _ terraform.UIOutput = new(UIOutput) -}