Skip to content

Commit

Permalink
refactor(userconfig): remove old user config files
Browse files Browse the repository at this point in the history
  • Loading branch information
byashimov authored and Serpentiel committed Mar 20, 2024
1 parent e129aea commit aba5592
Show file tree
Hide file tree
Showing 21 changed files with 0 additions and 14,479 deletions.
11 changes: 0 additions & 11 deletions internal/plugin/util/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,6 @@ func Ref[T any](v T) *T {
return &v
}

// Deref is a helper function that dereferences any pointer type and returns the value.
func Deref[T any](p *T) T {
var result T

if p != nil {
result = *p
}

return result
}

// First is a helper function that returns the first argument passed in out of two.
func First[T any, U any](a T, _ U) T {
return a
Expand Down
9 changes: 0 additions & 9 deletions internal/plugin/util/pluginhelpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,6 @@ func ComposeID(parts ...string) string {
return strings.Join(parts, "/")
}

// BetaDescription is a helper function that returns a description for beta resources.
func BetaDescription(description string) string {
return description + `
**This resource is in beta and may change without notice.** To use this resource,
set the ` + "`PROVIDER_AIVEN_ENABLE_BETA`" + ` environment variable to true.
`
}

// ValueOrDefault returns the value if not nil, otherwise returns the default value. Value is converted to type
// U if possible. If the conversion is not possible, the function panics.
//
Expand Down
115 changes: 0 additions & 115 deletions internal/schemautil/mutations.go

This file was deleted.

Loading

0 comments on commit aba5592

Please sign in to comment.