Skip to content

Commit

Permalink
chore: remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr committed Sep 7, 2022
1 parent 8994190 commit 47daf0a
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions consent/strategy_default_test.go
Expand Up @@ -44,7 +44,6 @@ import (
"github.com/ory/hydra/client"
. "github.com/ory/hydra/consent"
"github.com/ory/hydra/driver"
"github.com/ory/hydra/driver/config"
"github.com/ory/hydra/internal/testhelpers"
"github.com/ory/x/ioutilx"
)
Expand Down Expand Up @@ -110,11 +109,6 @@ func newAuthCookieJar(t *testing.T, reg driver.Registry, u, sessionID string) ht
ctx := context.Background()
cj, err := cookiejar.New(&cookiejar.Options{})
require.NoError(t, err)
secrets := reg.Config().Source(ctx).Strings(config.KeyGetCookieSecrets)
bs := make([][]byte, len(secrets))
for k, s := range secrets {
bs[k] = []byte(s)
}

hr := &http.Request{Header: map[string][]string{}, URL: urlx.ParseOrPanic(u), RequestURI: u}
cookie, _ := reg.CookieStore(ctx).Get(hr, reg.Config().SessionCookieName(ctx))
Expand Down

0 comments on commit 47daf0a

Please sign in to comment.