"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
Go azure-blobazure-blob-storageazure-filesbackblaze-b2cloud-storagedropboxencryptionftpfuse-filesystemgogolanggoogle-cloud-storagegoogle-driveonedriveopenstack-swiftrclones3sftpsyncwebdav
build: remove unused struct fields spotted by structcheck
Nick Craig-Woode80ae4e09c43
diff --git a/backend/azureblob/azureblob.go b/backend/azureblob/azureblob.goindex 861bc3740..4b1a7dd06 100644--- a/backend/azureblob/azureblob.go+++ b/backend/azureblob/azureblob.go@@ -95,7 +95,6 @@ type Fs struct {type Object struct {fs *Fs // what this object is part ofremote string // The remote path- id string // azure id of the filemodTime time.Time // The modified time of the object if knownmd5 string // MD5 hash if knownsize int64 // Size of the objectdiff --git a/backend/crypt/crypt.go b/backend/crypt/crypt.goindex cd4a009f0..de6b64590 100644--- a/backend/crypt/crypt.go+++ b/backend/crypt/crypt.go@@ -168,7 +168,6 @@ type Fs struct {root stringfeatures *fs.Features // optional featurescipher Cipher- mode NameEncryptionMode}// Name of the remote (as passed into NewFs)diff --git a/backend/webdav/webdav.go b/backend/webdav/webdav.goindex 6c98ac445..86ec2e0a8 100644--- a/backend/webdav/webdav.go+++ b/backend/webdav/webdav.go@@ -116,7 +116,6 @@ type Object struct {hasMetaData bool // whether info below has been setsize int64 // size of the objectmodTime time.Time // modification time of the object- id string // ID of the objectsha1 string // SHA-1 of the object content}diff --git a/backend/yandex/yandex.go b/backend/yandex/yandex.goindex 3aa9a2b72..11c2e9d46 100644--- a/backend/yandex/yandex.go+++ b/backend/yandex/yandex.go@@ -69,12 +69,11 @@ func init() {// Fs represents a remote yandextype 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 objectdiff --git a/cmd/ncdu/scan/scan.go b/cmd/ncdu/scan/scan.goindex 6f8e89248..b835ef4fd 100644--- a/cmd/ncdu/scan/scan.go+++ b/cmd/ncdu/scan/scan.go@@ -12,16 +12,13 @@ import (// Dir represents a directory found in the remotetype 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 onediff --git a/fs/fshttp/http.go b/fs/fshttp/http.goindex 642acbc1e..e8240c9a5 100644--- a/fs/fshttp/http.go+++ b/fs/fshttp/http.go@@ -42,10 +42,7 @@ func StartHTTPTokenBucket() {// A net.Conn that sets a deadline for every Read or Write operationtype timeoutConn struct {net.Conn- readTimer *time.Timer- writeTimer *time.Timer- timeout time.Duration- off time.Time+ timeout time.Duration}// create a timeoutConn using the timeoutdiff --git a/fs/operations/operations.go b/fs/operations/operations.goindex 90fb74a4f..88e69572c 100644--- a/fs/operations/operations.go+++ b/fs/operations/operations.go@@ -1368,7 +1368,6 @@ type ListFormat struct {dirSlash booloutput []func() stringentry fs.DirEntry- hash bool}// SetSeparator changes separator in struct