Remove Repository.Remove()

This commit is contained in:
Alexander Neumann 2015-05-17 20:52:31 +02:00
parent eb6dfcf58c
commit af381c2ab0
2 changed files with 2 additions and 6 deletions

View File

@ -79,7 +79,7 @@ func deleteKey(repo *repository.Repository, name string) error {
return errors.New("refusing to remove key currently used to access repository") return errors.New("refusing to remove key currently used to access repository")
} }
err := repo.Remove(backend.Key, name) err := repo.Backend().Remove(backend.Key, name)
if err != nil { if err != nil {
return err return err
} }
@ -103,7 +103,7 @@ func changePassword(s *repository.Repository) error {
} }
// remove old key // remove old key
err = s.Remove(backend.Key, s.KeyName()) err = s.Backend().Remove(backend.Key, s.KeyName())
if err != nil { if err != nil {
return err return err
} }

View File

@ -676,10 +676,6 @@ func (s *Repository) List(t backend.Type, done <-chan struct{}) <-chan backend.I
return outCh return outCh
} }
func (s *Repository) Remove(t backend.Type, name string) error {
return s.be.Remove(t, name)
}
func (s *Repository) Close() error { func (s *Repository) Close() error {
return s.be.Close() return s.be.Close()
} }