@@ -13,7 +13,6 @@ import (
1313 "github.com/hashicorp/terraform-plugin-framework/list"
1414 "github.com/hashicorp/terraform-plugin-framework/resource"
1515 "github.com/hashicorp/terraform-plugin-framework/tfsdk"
16- "github.com/hashicorp/terraform-plugin-go/tfprotov5"
1716 "github.com/hashicorp/terraform-plugin-go/tftypes"
1817)
1918
@@ -50,8 +49,6 @@ type ListResultsStream struct {
5049 // Results is a function that emits [ListResult] values via its push
5150 // function argument.
5251 Results iter.Seq [ListResult ]
53-
54- ResultsProtoV5 iter.Seq [tfprotov5.ListResourceResult ]
5552}
5653
5754func ListResultError (summary string , detail string ) ListResult {
@@ -62,18 +59,6 @@ func ListResultError(summary string, detail string) ListResult {
6259 }
6360}
6461
65- func ListResultErrorProto5 (summary string , detail string ) tfprotov5.ListResourceResult {
66- return tfprotov5.ListResourceResult {
67- Diagnostics : []* tfprotov5.Diagnostic {
68- {
69- Severity : 1 ,
70- Summary : summary ,
71- Detail : detail ,
72- },
73- },
74- }
75- }
76-
7762// ListResult represents a listed managed resource instance.
7863type ListResult struct {
7964 // Identity is the identity of the managed resource instance. A nil value
@@ -121,8 +106,6 @@ func (s *Server) ListResource(ctx context.Context, fwReq *ListRequest, fwStream
121106 if listResourceWithConfigure , ok := listResource .(list.ListResourceWithConfigure ); ok {
122107 logging .FrameworkTrace (ctx , "ListResource implements ListResourceWithConfigure" )
123108
124- // ListResourceConfigureData isn't populated in the ConfigureProvider RPC
125- // We can use ResourceConfigureData here for now or populate ListResourceConfigureData
126109 configureReq := resource.ConfigureRequest {
127110 ProviderData : s .ListResourceConfigureData ,
128111 }
0 commit comments