remove unused ResourceProviderError

This commit is contained in:
James Bardin 2019-02-20 14:23:56 -05:00
parent 6cc3e1d0bd
commit 44afe5b6ff
1 changed files with 0 additions and 13 deletions

View File

@ -5,7 +5,6 @@ import (
"github.com/hashicorp/terraform/tfdiags" "github.com/hashicorp/terraform/tfdiags"
multierror "github.com/hashicorp/go-multierror"
"github.com/hashicorp/terraform/plugin/discovery" "github.com/hashicorp/terraform/plugin/discovery"
"github.com/hashicorp/terraform/providers" "github.com/hashicorp/terraform/providers"
) )
@ -172,18 +171,6 @@ type ResourceProvider interface {
ReadDataApply(*InstanceInfo, *InstanceDiff) (*InstanceState, error) 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 // ResourceProviderCloser is an interface that providers that can close
// connections that aren't needed anymore must implement. // connections that aren't needed anymore must implement.
type ResourceProviderCloser interface { type ResourceProviderCloser interface {