Skip to content

Commit

Permalink
core: remove unused fields and methods from client
Browse files Browse the repository at this point in the history
  • Loading branch information
Aeneas Rekkas (arekkas) committed Aug 8, 2016
1 parent 4d1caeb commit 5f1851b
Showing 1 changed file with 6 additions and 20 deletions.
26 changes: 6 additions & 20 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,28 +17,18 @@ type Client interface {
// Returns the client's allowed response types.
GetResponseTypes() Arguments

// Returns the client's owner.
GetOwner() string

// Returns the scopes this client is allowed to request.
GetScopes() Arguments
}

// DefaultClient is a simple default implementation of the Client interface.
type DefaultClient struct {
ID string `json:"id" gorethink:"id"`
Name string `json:"client_name" gorethink:"client_name"`
Secret []byte `json:"client_secret,omitempty" gorethink:"client_secret"`
RedirectURIs []string `json:"redirect_uris" gorethink:"redirect_uris"`
GrantTypes []string `json:"grant_types" gorethink:"grant_types"`
ResponseTypes []string `json:"response_types" gorethink:"response_types"`
Scopes []string `json:"scopes" gorethink:"scopes"`
Owner string `json:"owner" gorethink:"owner"`
PolicyURI string `json:"policy_uri" gorethink:"policy_uri"`
TermsOfServiceURI string `json:"tos_uri" gorethink:"tos_uri"`
ClientURI string `json:"client_uri" gorethink:"client_uri"`
LogoURI string `json:"logo_uri" gorethink:"logo_uri"`
Contacts []string `json:"contacts" gorethink:"contacts"`
ID string `json:"id"`
Secret []byte `json:"client_secret,omitempty"`
RedirectURIs []string `json:"redirect_uris"`
GrantTypes []string `json:"grant_types"`
ResponseTypes []string `json:"response_types"`
Scopes []string `json:"scopes"`
}

func (c *DefaultClient) GetID() string {
Expand Down Expand Up @@ -80,7 +70,3 @@ func (c *DefaultClient) GetResponseTypes() Arguments {
}
return Arguments(c.ResponseTypes)
}

func (c *DefaultClient) GetOwner() string {
return c.Owner
}

0 comments on commit 5f1851b

Please sign in to comment.