Skip to content

Commit

Permalink
Remove deprecated fields and names for unused parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
digitalpoetry committed Nov 22, 2021
1 parent 26fe52b commit 4615154
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 16 deletions.
2 changes: 1 addition & 1 deletion terraform-provider-redash/data_source_query.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func dataSourceRedashQuery() *schema.Resource {
}
}

func dataSourceRedashQueryRead(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics {
func dataSourceRedashQueryRead(_ context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics {
c := meta.(*redash.Client)

var diags diag.Diagnostics
Expand Down
7 changes: 2 additions & 5 deletions terraform-provider-redash/resource_data_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ func resourceRedashDataSource() *schema.Resource {
ReadContext: resourceRedashDataSourceRead,
UpdateContext: resourceRedashDataSourceUpdate,
DeleteContext: resourceRedashDataSourceDelete,
Importer: &schema.ResourceImporter{
State: schema.ImportStatePassthrough,
},
Schema: map[string]*schema.Schema{
"last_updated": {
Type: schema.TypeString,
Expand Down Expand Up @@ -482,7 +479,7 @@ func resourceRedashDataSourceCreate(ctx context.Context, d *schema.ResourceData,
return diags
}

func resourceRedashDataSourceRead(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics {
func resourceRedashDataSourceRead(_ context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics {
c := meta.(*redash.Client)

var diags diag.Diagnostics
Expand Down Expand Up @@ -540,7 +537,7 @@ func resourceRedashDataSourceUpdate(ctx context.Context, d *schema.ResourceData,
return resourceRedashDataSourceRead(ctx, d, meta)
}

func resourceRedashDataSourceDelete(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics {
func resourceRedashDataSourceDelete(_ context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics {
c := meta.(*redash.Client)

var diags diag.Diagnostics
Expand Down
7 changes: 2 additions & 5 deletions terraform-provider-redash/resource_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ func resourceRedashGroup() *schema.Resource {
ReadContext: resourceRedashGroupRead,
UpdateContext: resourceRedashGroupUpdate,
DeleteContext: resourceRedashGroupDelete,
Importer: &schema.ResourceImporter{
State: schema.ImportStatePassthrough,
},
Schema: map[string]*schema.Schema{
"name": {
Type: schema.TypeString,
Expand Down Expand Up @@ -72,7 +69,7 @@ func resourceRedashGroupCreate(ctx context.Context, d *schema.ResourceData, meta
return diags
}

func resourceRedashGroupRead(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics {
func resourceRedashGroupRead(_ context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics {
c := meta.(*redash.Client)

var diags diag.Diagnostics
Expand Down Expand Up @@ -117,7 +114,7 @@ func resourceRedashGroupUpdate(ctx context.Context, d *schema.ResourceData, meta
return resourceRedashGroupRead(ctx, d, meta)
}

func resourceRedashGroupDelete(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics {
func resourceRedashGroupDelete(_ context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics {
c := meta.(*redash.Client)

var diags diag.Diagnostics
Expand Down
7 changes: 2 additions & 5 deletions terraform-provider-redash/resource_user.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ func resourceRedashUser() *schema.Resource {
ReadContext: resourceRedashUserRead,
UpdateContext: resourceRedashUserUpdate,
DeleteContext: resourceRedashUserDelete,
Importer: &schema.ResourceImporter{
State: schema.ImportStatePassthrough,
},
Schema: map[string]*schema.Schema{
"name": {
Type: schema.TypeString,
Expand Down Expand Up @@ -136,7 +133,7 @@ func resourceRedashUserCreate(ctx context.Context, d *schema.ResourceData, meta
return diags
}

func resourceRedashUserRead(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics {
func resourceRedashUserRead(_ context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics {
c := meta.(*redash.Client)

var diags diag.Diagnostics
Expand Down Expand Up @@ -206,7 +203,7 @@ func resourceRedashUserUpdate(ctx context.Context, d *schema.ResourceData, meta
return resourceRedashUserRead(ctx, d, meta)
}

func resourceRedashUserDelete(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics {
func resourceRedashUserDelete(_ context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics {
c := meta.(*redash.Client)
var diags diag.Diagnostics

Expand Down

0 comments on commit 4615154

Please sign in to comment.