Skip to content

Commit 8facf2f

Browse files
committed
remove unused function and constant
1 parent 341c3aa commit 8facf2f

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

internal/provider/attribute_helpers.go

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,12 @@ package provider
55

66
import (
77
"context"
8-
"crypto/sha256"
9-
"encoding/hex"
108

119
"github.com/hashicorp/terraform-plugin-framework/diag"
1210
"github.com/hashicorp/terraform-plugin-framework/path"
1311
"github.com/hashicorp/terraform-plugin-framework/types"
1412
)
1513

16-
const (
17-
ValueWOHashedPrivateKey = "value_wo_hashed"
18-
)
19-
2014
// AttrGettable is a small enabler for helper functions that need to read one
2115
// attribute of a Configuration, Plan, or State.
2216
type AttrGettable interface {
@@ -45,9 +39,3 @@ func (c *ConfiguredClient) dataOrDefaultOrganization(ctx context.Context, data A
4539

4640
return diags
4741
}
48-
49-
func generateSHA256Hash(data string) string {
50-
hasher := sha256.New()
51-
hasher.Write([]byte(data))
52-
return hex.EncodeToString(hasher.Sum(nil))
53-
}

0 commit comments

Comments
 (0)