Skip to content

Commit f7c5567

Browse files
authored
chore: remove more dead code (#5640)
1 parent 28b9840 commit f7c5567

File tree

12 files changed

+0
-34
lines changed

12 files changed

+0
-34
lines changed

internal/auth/oidc/auth_method.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -412,10 +412,6 @@ func (am *AuthMethod) convertAccountClaimMaps(ctx context.Context) ([]*AccountCl
412412
return nil, errors.New(ctx, errors.InvalidPublicId, op, "missing public id")
413413
}
414414
newAccountClaimMaps := make([]*AccountClaimMap, 0, len(am.AccountClaimMaps))
415-
const (
416-
from = 0
417-
to = 1
418-
)
419415
acms, err := ParseAccountClaimMaps(ctx, am.AccountClaimMaps...)
420416
if err != nil {
421417
return nil, errors.Wrap(ctx, err, op)

internal/auth/oidc/auth_method_test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ package oidc
55

66
import (
77
"context"
8-
"net/url"
98
"sort"
109
"testing"
1110

@@ -35,7 +34,6 @@ func TestAuthMethod_Create(t *testing.T) {
3534

3635
type args struct {
3736
scopeId string
38-
issuer *url.URL
3937
clientId string
4038
clientSecret ClientSecret
4139
opt []Option

internal/auth/oidc/provider_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ func Test_convertToProvider(t *testing.T) {
107107
testAm.ApiUrl = allowedRedirect
108108
testAm.Certificates = []string{tp.CACert()}
109109

110-
type args struct{}
111110
tests := []struct {
112111
name string
113112
am *AuthMethod

internal/clientcache/internal/cache/consts.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,4 @@ const (
1010
// defaultLimitedResultSetSize is the default number of results to
1111
// return when limiting
1212
defaultLimitedResultSetSize = 250
13-
14-
// unlimitedMaxResultSetSize is the value to use when we want to return all
15-
// results
16-
unlimitedMaxResultSetSize = -1
1713
)

internal/clientcache/internal/cache/repository_token_test.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -829,12 +829,6 @@ var infinityValue = infinityDate{
829829
IsInfinity: true,
830830
}
831831

832-
// negInfinityValue represents a time.Time that is negative infinity
833-
var negInfinityValue = infinityDate{
834-
Time: time.Time{},
835-
IsNegInfinity: true,
836-
}
837-
838832
// infinityDate is used to represent a time.Time that can be infinity, neg
839833
// infinity or a regular time.Time
840834
type infinityDate struct {

internal/cmd/commands/aliasescmd/funcs.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@ import (
1212
"github.com/hashicorp/boundary/internal/cmd/base"
1313
)
1414

15-
type extraCmdVars struct {
16-
flagMembers []string
17-
}
18-
1915
func (c *Command) extraHelpFunc(helpMap map[string]func() string) string {
2016
var helpStr string
2117
switch c.Func {

internal/cmd/commands/connect/connect.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ import (
2828
exec "golang.org/x/sys/execabs"
2929
)
3030

31-
const sessionCancelTimeout = 10 * time.Second
32-
3331
type SessionInfo struct {
3432
Address string `json:"address"`
3533
Port int `json:"port"`

internal/daemon/controller/handlers/accounts/account_service.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,6 @@ const (
6262
emailAttrField = "attributes.email"
6363
dnAttrField = "attributes.dn"
6464
memberOfAttrField = "attributes.member_of_groups"
65-
66-
domain = "auth"
6765
)
6866

6967
var (

internal/daemon/controller/handlers/accounts/account_service_test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@ import (
4545
"google.golang.org/protobuf/types/known/wrapperspb"
4646
)
4747

48-
const domain = "auth"
49-
5048
var (
5149
pwAuthorizedActions = []string{
5250
action.NoOp.String(),

internal/daemon/controller/handlers/host_sets/host_set_service.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,6 @@ var (
6868
)
6969
)
7070

71-
const domain = "host"
72-
7371
func init() {
7472
var err error
7573
if maskManager[static.Subtype], err = handlers.NewMaskManager(

0 commit comments

Comments
 (0)