forked from TrueCloudLab/rclone
build: fix problems found by the deadcode linter
This commit is contained in:
parent
c1d9a1e174
commit
6b3a9bf26a
5 changed files with 2 additions and 16 deletions
|
@ -1104,12 +1104,6 @@ func (o *Object) readMetaData() (err error) {
|
||||||
return o.decodeMetaDataFromPropertiesResponse(blobProperties)
|
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
|
// parseTimeString converts a decimal string number of milliseconds
|
||||||
// elapsed since January 1, 1970 UTC into a time.Time and stores it in
|
// elapsed since January 1, 1970 UTC into a time.Time and stores it in
|
||||||
// the modTime variable.
|
// the modTime variable.
|
||||||
|
|
|
@ -40,7 +40,7 @@ const (
|
||||||
maxSleep = 2 * time.Second
|
maxSleep = 2 * time.Second
|
||||||
decayConstant = 2 // bigger for slower decay, exponential
|
decayConstant = 2 // bigger for slower decay, exponential
|
||||||
defaultDevice = "Jotta"
|
defaultDevice = "Jotta"
|
||||||
defaultMountpoint = "Sync"
|
defaultMountpoint = "Sync" // nolint
|
||||||
rootURL = "https://www.jottacloud.com/jfs/"
|
rootURL = "https://www.jottacloud.com/jfs/"
|
||||||
apiURL = "https://api.jottacloud.com/files/v1/"
|
apiURL = "https://api.jottacloud.com/files/v1/"
|
||||||
baseURL = "https://www.jottacloud.com/"
|
baseURL = "https://www.jottacloud.com/"
|
||||||
|
|
|
@ -227,7 +227,7 @@ that the chunks will be buffered into memory.`,
|
||||||
Advanced: true,
|
Advanced: true,
|
||||||
}, {
|
}, {
|
||||||
Name: "drive_type",
|
Name: "drive_type",
|
||||||
Help: "The type of the drive ( personal | business | documentLibrary )",
|
Help: "The type of the drive ( " + driveTypePersonal + " | " + driveTypeBusiness + " | " + driveTypeSharepoint + " )",
|
||||||
Default: "",
|
Default: "",
|
||||||
Advanced: true,
|
Advanced: true,
|
||||||
}, {
|
}, {
|
||||||
|
|
|
@ -23,8 +23,6 @@ import (
|
||||||
"github.com/ncw/rclone/fs"
|
"github.com/ncw/rclone/fs"
|
||||||
)
|
)
|
||||||
|
|
||||||
const testBase = "github.com/ncw/rclone/"
|
|
||||||
|
|
||||||
// Control concurrency per backend if required
|
// Control concurrency per backend if required
|
||||||
var (
|
var (
|
||||||
oneOnlyMu sync.Mutex
|
oneOnlyMu sync.Mutex
|
||||||
|
|
|
@ -27,12 +27,6 @@ import (
|
||||||
"github.com/ncw/rclone/lib/pacer"
|
"github.com/ncw/rclone/lib/pacer"
|
||||||
)
|
)
|
||||||
|
|
||||||
type remoteConfig struct {
|
|
||||||
Name string
|
|
||||||
SubDir bool
|
|
||||||
FastList bool
|
|
||||||
}
|
|
||||||
|
|
||||||
var (
|
var (
|
||||||
// Flags
|
// Flags
|
||||||
maxTries = flag.Int("maxtries", 5, "Number of times to try each test")
|
maxTries = flag.Int("maxtries", 5, "Number of times to try each test")
|
||||||
|
|
Loading…
Add table
Reference in a new issue