Skip to content

Commit 545ef44

Browse files
authored
Remove unused LocationDescriber interface from google_provider_config_plugin_framework (#12400)
1 parent df8eb1b commit 545ef44

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

mmv1/third_party/terraform/fwprovider/data_source_provider_config_plugin_framework.go

-11
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,13 @@ import (
1010
"github.com/hashicorp/terraform-plugin-framework/diag"
1111
"github.com/hashicorp/terraform-plugin-framework/types"
1212
"github.com/hashicorp/terraform-provider-google/google/fwmodels"
13-
"github.com/hashicorp/terraform-provider-google/google/fwresource"
1413
transport_tpg "github.com/hashicorp/terraform-provider-google/google/transport"
1514
)
1615

1716
// Ensure the data source satisfies the expected interfaces.
1817
var (
1918
_ datasource.DataSource = &GoogleProviderConfigPluginFrameworkDataSource{}
2019
_ datasource.DataSourceWithConfigure = &GoogleProviderConfigPluginFrameworkDataSource{}
21-
_ fwresource.LocationDescriber = &GoogleProviderConfigPluginFrameworkModel{}
2220
)
2321

2422
func NewGoogleProviderConfigPluginFrameworkDataSource() datasource.DataSource {
@@ -56,15 +54,6 @@ type GoogleProviderConfigPluginFrameworkModel struct {
5654
TerraformAttributionLabelAdditionStrategy types.String `tfsdk:"terraform_attribution_label_addition_strategy"`
5755
}
5856

59-
func (m *GoogleProviderConfigPluginFrameworkModel) GetLocationDescription(providerConfig *transport_tpg.Config) fwresource.LocationDescription {
60-
return fwresource.LocationDescription{
61-
RegionSchemaField: types.StringValue("region"),
62-
ZoneSchemaField: types.StringValue("zone"),
63-
ProviderRegion: types.StringValue(providerConfig.Region),
64-
ProviderZone: types.StringValue(providerConfig.Zone),
65-
}
66-
}
67-
6857
func (d *GoogleProviderConfigPluginFrameworkDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) {
6958
resp.TypeName = req.ProviderTypeName + "_provider_config_plugin_framework"
7059
}

0 commit comments

Comments
 (0)