Remove restic.Cache interface

It was used in one code path, which then asserted its concrete type as
*cache.Cache.

Privatised some of the interface methods.
This commit is contained in:
greatroar
2020-03-02 18:27:52 +01:00
parent 6e3215a80d
commit 23fcbb275a
6 changed files with 24 additions and 63 deletions

View File

@@ -46,9 +46,6 @@ func readVersion(dir string) (v uint, err error) {
const cacheVersion = 1
// ensure Cache implements restic.Cache
var _ restic.Cache = &Cache{}
var cacheLayoutPaths = map[restic.FileType]string{
restic.PackFile: "data",
restic.SnapshotFile: "snapshots",