Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

build: fix problems found by the deadcode linter

Nick Craig-Wood6b3a9bf26aa9
diff --git a/backend/azureblob/azureblob.go b/backend/azureblob/azureblob.go
index 520b03aca..8e8d9bbdf 100644
--- a/backend/azureblob/azureblob.go
+++ b/backend/azureblob/azureblob.go
@@ -1104,12 +1104,6 @@ func (o *Object) readMetaData() (err error) {
return o.decodeMetaDataFromPropertiesResponse(blobProperties)
}
-// timeString returns modTime as the number of milliseconds
-// elapsed since January 1, 1970 UTC as a decimal string.
-func timeString(modTime time.Time) string {
- return strconv.FormatInt(modTime.UnixNano()/1E6, 10)
-}
-
// parseTimeString converts a decimal string number of milliseconds
// elapsed since January 1, 1970 UTC into a time.Time and stores it in
// the modTime variable.
diff --git a/backend/jottacloud/jottacloud.go b/backend/jottacloud/jottacloud.go
index 55d46d646..51d0dc529 100644
--- a/backend/jottacloud/jottacloud.go
+++ b/backend/jottacloud/jottacloud.go
@@ -40,7 +40,7 @@ const (
maxSleep = 2 * time.Second
decayConstant = 2 // bigger for slower decay, exponential
defaultDevice = "Jotta"
- defaultMountpoint = "Sync"
+ defaultMountpoint = "Sync" // nolint
rootURL = "https://www.jottacloud.com/jfs/"
apiURL = "https://api.jottacloud.com/files/v1/"
baseURL = "https://www.jottacloud.com/"
diff --git a/backend/onedrive/onedrive.go b/backend/onedrive/onedrive.go
index 45f3e7042..242d01e06 100644
--- a/backend/onedrive/onedrive.go
+++ b/backend/onedrive/onedrive.go
@@ -227,7 +227,7 @@ that the chunks will be buffered into memory.`,
Advanced: true,
}, {
Name: "drive_type",
- Help: "The type of the drive ( personal | business | documentLibrary )",
+ Help: "The type of the drive ( " + driveTypePersonal + " | " + driveTypeBusiness + " | " + driveTypeSharepoint + " )",
Default: "",
Advanced: true,
}, {
diff --git a/fstest/test_all/run.go b/fstest/test_all/run.go
index b9f1eac8b..03fd78c81 100644
--- a/fstest/test_all/run.go
+++ b/fstest/test_all/run.go
@@ -23,8 +23,6 @@ import (
"github.com/ncw/rclone/fs"
)
-const testBase = "github.com/ncw/rclone/"
-
// Control concurrency per backend if required
var (
oneOnlyMu sync.Mutex
diff --git a/fstest/test_all/test_all.go b/fstest/test_all/test_all.go
index b8a462f96..4bcf0b871 100644
--- a/fstest/test_all/test_all.go
+++ b/fstest/test_all/test_all.go
@@ -27,12 +27,6 @@ import (
"github.com/ncw/rclone/lib/pacer"
)
-type remoteConfig struct {
- Name string
- SubDir bool
- FastList bool
-}
-
var (
// Flags
maxTries = flag.Int("maxtries", 5, "Number of times to try each test")