mirror of
https://github.com/minio/minio.git
synced 2025-11-10 05:59:43 -05:00
Remove all unused variables and functions (#5823)
This commit is contained in:
committed by
Nitish Tiwari
parent
97a8d856b6
commit
adf9a9d300
13
cmd/utils.go
13
cmd/utils.go
@@ -23,7 +23,6 @@ import (
|
||||
"encoding/base64"
|
||||
"encoding/json"
|
||||
"encoding/xml"
|
||||
"errors"
|
||||
"fmt"
|
||||
"io"
|
||||
"net"
|
||||
@@ -232,18 +231,6 @@ func isFile(path string) bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// checkURL - checks if passed address correspond
|
||||
func checkURL(urlStr string) (*url.URL, error) {
|
||||
if urlStr == "" {
|
||||
return nil, errors.New("Address cannot be empty")
|
||||
}
|
||||
u, err := url.Parse(urlStr)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("`%s` invalid: %s", urlStr, err.Error())
|
||||
}
|
||||
return u, nil
|
||||
}
|
||||
|
||||
// UTCNow - returns current UTC time.
|
||||
func UTCNow() time.Time {
|
||||
return time.Now().UTC()
|
||||
|
||||
Reference in New Issue
Block a user