build: remove unused struct fields spotted by structcheck

This commit is contained in:
Nick Craig-Wood 2018-05-05 11:33:01 +01:00
parent 1320e84bc2
commit e80ae4e09c
7 changed files with 13 additions and 24 deletions

View File

@ -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

View File

@ -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)

View File

@ -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
} }

View File

@ -74,7 +74,6 @@ type Fs struct {
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

View File

@ -17,11 +17,8 @@ type Dir struct {
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

View File

@ -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
writeTimer *time.Timer
timeout time.Duration timeout time.Duration
off time.Time
} }
// create a timeoutConn using the timeout // create a timeoutConn using the timeout

View File

@ -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