mirror of
https://github.com/pgsty/minio.git
synced 2026-07-19 20:20:25 +03:00
server: Deadcode removal. (#1517)
This commit is contained in:
committed by
Anand Babu (AB) Periasamy
parent
bf563afb80
commit
937d68202d
@@ -57,16 +57,6 @@ func isValidPath(path string) bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// isValidPrefix verifies where the prefix is a valid path.
|
||||
func isValidPrefix(prefix string) bool {
|
||||
// Prefix can be empty.
|
||||
if prefix == "" || prefix == "/" {
|
||||
return true
|
||||
}
|
||||
// Verify if prefix is a valid path.
|
||||
return isValidPath(prefix)
|
||||
}
|
||||
|
||||
// List of reserved words for files, includes old and new ones.
|
||||
var reservedKeywords = []string{
|
||||
"$multiparts",
|
||||
|
||||
Reference in New Issue
Block a user