cleanup unused code

This commit is contained in:
Tim Möhlmann 2023-03-07 17:44:10 +02:00
parent 7139a555fd
commit bb266aac4b
4 changed files with 0 additions and 183 deletions

View file

@ -36,18 +36,6 @@ type IntrospectionResponse struct {
Claims map[string]any `json:"-"`
}
// GetUserInfo copies all user related fields into a new UserInfo.
func (i *IntrospectionResponse) GetUserInfo() *UserInfo {
return &UserInfo{
Address: gu.PtrCopy(i.Address),
Subject: i.Subject,
UserInfoProfile: i.UserInfoProfile,
UserInfoEmail: i.UserInfoEmail,
UserInfoPhone: i.UserInfoPhone,
Claims: gu.MapCopy(i.Claims),
}
}
// SetUserInfo copies all relevant fields from UserInfo
// into the IntroSpectionResponse.
func (i *IntrospectionResponse) SetUserInfo(u *UserInfo) {

View file

@ -8,11 +8,6 @@ import (
"github.com/stretchr/testify/require"
)
func TestIntrospectionResponse_GetUserInfo(t *testing.T) {
got := introspectionResponseData.GetUserInfo()
assert.Equal(t, userInfoData, got)
}
func TestIntrospectionResponse_SetUserInfo(t *testing.T) {
tests := []struct {
name string