mirror of
https://github.com/restic/restic.git
synced 2026-10-13 21:47:12 +00:00
backend: remove unused Location method
This commit is contained in:
1 parent
eb6c653f89
commit
0c1ba6d95d
14 files changed
-81
No files matched your search
@@ -21,7 +21,6 @@ type Backend struct {
|
||||
RemoveFn func(ctx context.Context, h backend.Handle) error
|
||||
DeleteFn func(ctx context.Context) error
|
||||
ConnectionsFn func() uint
|
||||
LocationFn func() string
|
||||
HasherFn func() hash.Hash
|
||||
HasAtomicReplaceFn func() bool
|
||||
}
|
||||
@@ -49,15 +48,6 @@ func (m *Backend) Connections() uint {
|
||||
return m.ConnectionsFn()
|
||||
}
|
||||
|
||||
// Location returns a location string.
|
||||
func (m *Backend) Location() string {
|
||||
if m.LocationFn == nil {
|
||||
return ""
|
||||
}
|
||||
|
||||
return m.LocationFn()
|
||||
}
|
||||
|
||||
// Hasher may return a hash function for calculating a content hash for the backend
|
||||
func (m *Backend) Hasher() hash.Hash {
|
||||
if m.HasherFn == nil {
|
||||
|
||||
Reference in new issue
Block a user