diff --git a/pkg/secrethub/account.go b/pkg/secrethub/account.go index 0bbd3c3d..bcd67c2c 100644 --- a/pkg/secrethub/account.go +++ b/pkg/secrethub/account.go @@ -14,8 +14,6 @@ var ( // AccountService handles operations on SecretHub accounts. type AccountService interface { - // Me retrieves the authenticated account of the client. - Me() (*api.Account, error) // Get retrieves an account by name. Get(name string) (*api.Account, error) // Keys returns an account key service. @@ -32,11 +30,6 @@ type accountService struct { client *Client } -// Me retrieves the authenticated account of the client. -func (s accountService) Me() (*api.Account, error) { - return s.client.getMyAccount() -} - // Get retrieves an account by name. func (s accountService) Get(name string) (*api.Account, error) { accountName, err := api.NewAccountName(name) diff --git a/pkg/secrethub/fakeclient/account.go b/pkg/secrethub/fakeclient/account.go index ab42da87..3699ef64 100644 --- a/pkg/secrethub/fakeclient/account.go +++ b/pkg/secrethub/fakeclient/account.go @@ -9,7 +9,6 @@ import ( // AccountService is a mock of the AccountService interface. type AccountService struct { - MeFunc func() (*api.Account, error) GetFunc func(name string) (*api.Account, error) AccountKeyService secrethub.AccountKeyService } @@ -22,8 +21,3 @@ func (s *AccountService) Keys() secrethub.AccountKeyService { func (s *AccountService) Get(name string) (*api.Account, error) { return s.GetFunc(name) } - -// Me implements the AccountService interface Me function. -func (s *AccountService) Me() (*api.Account, error) { - return s.MeFunc() -}