From f773feeb0495e68c18c7b02bf614dcb82db7204a Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Sun, 17 May 2015 20:55:24 +0200 Subject: [PATCH] Remove Repository.Close() and .Location() --- repository/repository.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/repository/repository.go b/repository/repository.go index 8bc2b4992..aad5f3c9b 100644 --- a/repository/repository.go +++ b/repository/repository.go @@ -676,10 +676,6 @@ func (s *Repository) List(t backend.Type, done <-chan struct{}) <-chan backend.I return outCh } -func (s *Repository) Close() error { - return s.be.Close() -} - func (s *Repository) Delete() error { if b, ok := s.be.(backend.Deleter); ok { 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") } -func (s *Repository) Location() string { - return s.be.Location() +func (s *Repository) Close() error { + return s.be.Close() }