chore: remove more dead code (#5640)

pull/5646/head
Irena Rindos 11 months ago committed by GitHub
parent 28b9840878
commit f7c55678e0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -412,10 +412,6 @@ func (am *AuthMethod) convertAccountClaimMaps(ctx context.Context) ([]*AccountCl
return nil, errors.New(ctx, errors.InvalidPublicId, op, "missing public id")
}
newAccountClaimMaps := make([]*AccountClaimMap, 0, len(am.AccountClaimMaps))
const (
from = 0
to = 1
)
acms, err := ParseAccountClaimMaps(ctx, am.AccountClaimMaps...)
if err != nil {
return nil, errors.Wrap(ctx, err, op)

@ -5,7 +5,6 @@ package oidc
import (
"context"
"net/url"
"sort"
"testing"
@ -35,7 +34,6 @@ func TestAuthMethod_Create(t *testing.T) {
type args struct {
scopeId string
issuer *url.URL
clientId string
clientSecret ClientSecret
opt []Option

@ -107,7 +107,6 @@ func Test_convertToProvider(t *testing.T) {
testAm.ApiUrl = allowedRedirect
testAm.Certificates = []string{tp.CACert()}
type args struct{}
tests := []struct {
name string
am *AuthMethod

@ -10,8 +10,4 @@ const (
// defaultLimitedResultSetSize is the default number of results to
// return when limiting
defaultLimitedResultSetSize = 250
// unlimitedMaxResultSetSize is the value to use when we want to return all
// results
unlimitedMaxResultSetSize = -1
)

@ -829,12 +829,6 @@ var infinityValue = infinityDate{
IsInfinity: true,
}
// negInfinityValue represents a time.Time that is negative infinity
var negInfinityValue = infinityDate{
Time: time.Time{},
IsNegInfinity: true,
}
// infinityDate is used to represent a time.Time that can be infinity, neg
// infinity or a regular time.Time
type infinityDate struct {

@ -12,10 +12,6 @@ import (
"github.com/hashicorp/boundary/internal/cmd/base"
)
type extraCmdVars struct {
flagMembers []string
}
func (c *Command) extraHelpFunc(helpMap map[string]func() string) string {
var helpStr string
switch c.Func {

@ -28,8 +28,6 @@ import (
exec "golang.org/x/sys/execabs"
)
const sessionCancelTimeout = 10 * time.Second
type SessionInfo struct {
Address string `json:"address"`
Port int `json:"port"`

@ -62,8 +62,6 @@ const (
emailAttrField = "attributes.email"
dnAttrField = "attributes.dn"
memberOfAttrField = "attributes.member_of_groups"
domain = "auth"
)
var (

@ -45,8 +45,6 @@ import (
"google.golang.org/protobuf/types/known/wrapperspb"
)
const domain = "auth"
var (
pwAuthorizedActions = []string{
action.NoOp.String(),

@ -68,8 +68,6 @@ var (
)
)
const domain = "host"
func init() {
var err error
if maskManager[static.Subtype], err = handlers.NewMaskManager(

@ -158,10 +158,6 @@ order by ccu.table_name,pgc.conname `
rw := dbw.New(db)
rows, err := rw.Query(testCtx, constraintSql, []any{tableName})
require.NoError(err)
type result struct {
Name string
TableName string
}
results := []constraintResults{}
for rows.Next() {
var r constraintResults

@ -51,7 +51,6 @@ func TestProtoAttributeKey(t *testing.T) {
}
func TestProtoAttributeKeyErrors(t *testing.T) {
type notproto struct{}
cases := []struct {
name string
msg proto.Message

Loading…
Cancel
Save