forked from TrueCloudLab/rclone
build: remove unused struct fields spotted by structcheck
This commit is contained in:
parent
1320e84bc2
commit
e80ae4e09c
7 changed files with 13 additions and 24 deletions
|
@ -95,7 +95,6 @@ type Fs struct {
|
||||||
type Object struct {
|
type Object struct {
|
||||||
fs *Fs // what this object is part of
|
fs *Fs // what this object is part of
|
||||||
remote string // The remote path
|
remote string // The remote path
|
||||||
id string // azure id of the file
|
|
||||||
modTime time.Time // The modified time of the object if known
|
modTime time.Time // The modified time of the object if known
|
||||||
md5 string // MD5 hash if known
|
md5 string // MD5 hash if known
|
||||||
size int64 // Size of the object
|
size int64 // Size of the object
|
||||||
|
|
|
@ -168,7 +168,6 @@ type Fs struct {
|
||||||
root string
|
root string
|
||||||
features *fs.Features // optional features
|
features *fs.Features // optional features
|
||||||
cipher Cipher
|
cipher Cipher
|
||||||
mode NameEncryptionMode
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Name of the remote (as passed into NewFs)
|
// Name of the remote (as passed into NewFs)
|
||||||
|
|
|
@ -116,7 +116,6 @@ type Object struct {
|
||||||
hasMetaData bool // whether info below has been set
|
hasMetaData bool // whether info below has been set
|
||||||
size int64 // size of the object
|
size int64 // size of the object
|
||||||
modTime time.Time // modification time of the object
|
modTime time.Time // modification time of the object
|
||||||
id string // ID of the object
|
|
||||||
sha1 string // SHA-1 of the object content
|
sha1 string // SHA-1 of the object content
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -69,12 +69,11 @@ func init() {
|
||||||
|
|
||||||
// Fs represents a remote yandex
|
// Fs represents a remote yandex
|
||||||
type Fs struct {
|
type Fs struct {
|
||||||
name string
|
name string
|
||||||
root string //root path
|
root string //root path
|
||||||
features *fs.Features // optional features
|
features *fs.Features // optional features
|
||||||
yd *yandex.Client // client for rest api
|
yd *yandex.Client // client for rest api
|
||||||
diskRoot string //root path with "disk:/" container name
|
diskRoot string //root path with "disk:/" container name
|
||||||
mkdircache map[string]int
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Object describes a swift object
|
// Object describes a swift object
|
||||||
|
|
|
@ -12,16 +12,13 @@ import (
|
||||||
|
|
||||||
// Dir represents a directory found in the remote
|
// Dir represents a directory found in the remote
|
||||||
type Dir struct {
|
type Dir struct {
|
||||||
parent *Dir
|
parent *Dir
|
||||||
path string
|
path string
|
||||||
mu sync.Mutex
|
mu sync.Mutex
|
||||||
count int64
|
count int64
|
||||||
size int64
|
size int64
|
||||||
complete bool
|
entries fs.DirEntries
|
||||||
entries fs.DirEntries
|
dirs map[string]*Dir
|
||||||
dirs map[string]*Dir
|
|
||||||
offset int // current listing offset
|
|
||||||
entry int // current listing entry
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Parent returns the directory above this one
|
// Parent returns the directory above this one
|
||||||
|
|
|
@ -42,10 +42,7 @@ func StartHTTPTokenBucket() {
|
||||||
// A net.Conn that sets a deadline for every Read or Write operation
|
// A net.Conn that sets a deadline for every Read or Write operation
|
||||||
type timeoutConn struct {
|
type timeoutConn struct {
|
||||||
net.Conn
|
net.Conn
|
||||||
readTimer *time.Timer
|
timeout time.Duration
|
||||||
writeTimer *time.Timer
|
|
||||||
timeout time.Duration
|
|
||||||
off time.Time
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// create a timeoutConn using the timeout
|
// create a timeoutConn using the timeout
|
||||||
|
|
|
@ -1368,7 +1368,6 @@ type ListFormat struct {
|
||||||
dirSlash bool
|
dirSlash bool
|
||||||
output []func() string
|
output []func() string
|
||||||
entry fs.DirEntry
|
entry fs.DirEntry
|
||||||
hash bool
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// SetSeparator changes separator in struct
|
// SetSeparator changes separator in struct
|
||||||
|
|
Loading…
Add table
Reference in a new issue