1
0
Fork 0
mirror of https://github.com/restic/restic.git synced 2024-12-23 00:07:25 +00:00

Remove Repository.Close() and .Location()

This commit is contained in:
Alexander Neumann 2015-05-17 20:55:24 +02:00
parent af381c2ab0
commit f773feeb04

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) Close() error {
return s.be.Close()
}
func (s *Repository) Delete() error { func (s *Repository) Delete() error {
if b, ok := s.be.(backend.Deleter); ok { if b, ok := s.be.(backend.Deleter); ok {
return b.Delete() return b.Delete()
@ -688,6 +684,6 @@ func (s *Repository) Delete() error {
return errors.New("Delete() called for backend that does not implement this method") return errors.New("Delete() called for backend that does not implement this method")
} }
func (s *Repository) Location() string { func (s *Repository) Close() error {
return s.be.Location() return s.be.Close()
} }