forked from TrueCloudLab/restic
Remove unused vars and const
This commit is contained in:
parent
f157f775da
commit
223108c6ae
6 changed files with 3 additions and 15 deletions
|
@ -15,7 +15,6 @@ var (
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
newHash = sha256.New
|
|
||||||
hashData = sha256.Sum256
|
hashData = sha256.Sum256
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -19,10 +19,9 @@ import (
|
||||||
var ErrWrongData = errors.New("wrong data returned by backend, checksum does not match")
|
var ErrWrongData = errors.New("wrong data returned by backend, checksum does not match")
|
||||||
|
|
||||||
type Local struct {
|
type Local struct {
|
||||||
p string
|
p string
|
||||||
ver uint
|
ver uint
|
||||||
name string
|
id string
|
||||||
id string
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Open opens the local backend at dir.
|
// Open opens the local backend at dir.
|
||||||
|
|
|
@ -7,8 +7,6 @@ import (
|
||||||
"syscall"
|
"syscall"
|
||||||
)
|
)
|
||||||
|
|
||||||
const backlog = 100
|
|
||||||
|
|
||||||
type entry struct {
|
type entry struct {
|
||||||
path string
|
path string
|
||||||
fi os.FileInfo
|
fi os.FileInfo
|
||||||
|
|
|
@ -10,12 +10,6 @@ import (
|
||||||
"github.com/restic/restic/debug"
|
"github.com/restic/restic/debug"
|
||||||
)
|
)
|
||||||
|
|
||||||
type findQuery struct {
|
|
||||||
name string
|
|
||||||
minModTime time.Time
|
|
||||||
maxModTime time.Time
|
|
||||||
}
|
|
||||||
|
|
||||||
type findResult struct {
|
type findResult struct {
|
||||||
node *restic.Node
|
node *restic.Node
|
||||||
path string
|
path string
|
||||||
|
|
1
key.go
1
key.go
|
@ -46,7 +46,6 @@ type Key struct {
|
||||||
Created time.Time `json:"created"`
|
Created time.Time `json:"created"`
|
||||||
Username string `json:"username"`
|
Username string `json:"username"`
|
||||||
Hostname string `json:"hostname"`
|
Hostname string `json:"hostname"`
|
||||||
Comment string `json:"comment,omitempty"`
|
|
||||||
|
|
||||||
KDF string `json:"kdf"`
|
KDF string `json:"kdf"`
|
||||||
N int `json:"N"`
|
N int `json:"N"`
|
||||||
|
|
|
@ -316,7 +316,6 @@ func (s Server) Key() *Key {
|
||||||
|
|
||||||
type ServerStats struct {
|
type ServerStats struct {
|
||||||
Blobs, Trees uint
|
Blobs, Trees uint
|
||||||
Bytes uint64
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Stats returns statistics for this backend and the server.
|
// Stats returns statistics for this backend and the server.
|
||||||
|
|
Loading…
Reference in a new issue