Remove all unused variables and functions (#5823)

This commit is contained in:
Harshavardhana
2018-04-15 06:56:04 -07:00
committed by Nitish Tiwari
parent 97a8d856b6
commit adf9a9d300
14 changed files with 29 additions and 99 deletions

View File

@@ -18,10 +18,20 @@ package cmd
import (
"context"
"io"
"os"
"testing"
)
// Returns format.Cache.Version
func formatCacheGetVersion(r io.ReadSeeker) (string, error) {
format := &formatCacheVersionDetect{}
if err := jsonLoad(r, format); err != nil {
return "", err
}
return format.Cache.Version, nil
}
// TestDiskCacheFormat - tests initFormatCache, formatMetaGetFormatBackendCache, formatCacheGetVersion.
func TestDiskCacheFormat(t *testing.T) {
ctx := context.Background()