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 {
fs *Fs // what this object is part of
remote string // The remote path
id string // azure id of the file
modTime time.Time // The modified time of the object if known
md5 string // MD5 hash if known
size int64 // Size of the object

View File

@ -168,7 +168,6 @@ type Fs struct {
root string
features *fs.Features // optional features
cipher Cipher
mode NameEncryptionMode
}
// 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
size int64 // size 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
}

View File

@ -69,12 +69,11 @@ func init() {
// Fs represents a remote yandex
type Fs struct {
name string
root string //root path
features *fs.Features // optional features
yd *yandex.Client // client for rest api
diskRoot string //root path with "disk:/" container name
mkdircache map[string]int
name string
root string //root path
features *fs.Features // optional features
yd *yandex.Client // client for rest api
diskRoot string //root path with "disk:/" container name
}
// Object describes a swift object

View File

@ -12,16 +12,13 @@ import (
// Dir represents a directory found in the remote
type Dir struct {
parent *Dir
path string
mu sync.Mutex
count int64
size int64
complete bool
entries fs.DirEntries
dirs map[string]*Dir
offset int // current listing offset
entry int // current listing entry
parent *Dir
path string
mu sync.Mutex
count int64
size int64
entries fs.DirEntries
dirs map[string]*Dir
}
// 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
type timeoutConn struct {
net.Conn
readTimer *time.Timer
writeTimer *time.Timer
timeout time.Duration
off time.Time
timeout time.Duration
}
// create a timeoutConn using the timeout

View File

@ -1368,7 +1368,6 @@ type ListFormat struct {
dirSlash bool
output []func() string
entry fs.DirEntry
hash bool
}
// SetSeparator changes separator in struct