From 44afe5b6ff12c74a6731bd40b5bbab5e85c2d35e Mon Sep 17 00:00:00 2001 From: James Bardin Date: Wed, 20 Feb 2019 14:23:56 -0500 Subject: [PATCH] remove unused ResourceProviderError --- terraform/resource_provider.go | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/terraform/resource_provider.go b/terraform/resource_provider.go index 17f93e10d..3455ad88c 100644 --- a/terraform/resource_provider.go +++ b/terraform/resource_provider.go @@ -5,7 +5,6 @@ import ( "github.com/hashicorp/terraform/tfdiags" - multierror "github.com/hashicorp/go-multierror" "github.com/hashicorp/terraform/plugin/discovery" "github.com/hashicorp/terraform/providers" ) @@ -172,18 +171,6 @@ type ResourceProvider interface { ReadDataApply(*InstanceInfo, *InstanceDiff) (*InstanceState, error) } -// ResourceProviderError may be returned when creating a Context if the -// required providers cannot be satisfied. This error can then be used to -// format a more useful message for the user. -type ResourceProviderError struct { - Errors []error -} - -func (e *ResourceProviderError) Error() string { - // use multierror to format the default output - return multierror.Append(nil, e.Errors...).Error() -} - // ResourceProviderCloser is an interface that providers that can close // connections that aren't needed anymore must implement. type ResourceProviderCloser interface {