server: Deadcode removal. (#1517)

This commit is contained in:
Harshavardhana
2016-05-07 21:47:33 -07:00
committed by Anand Babu (AB) Periasamy
parent bf563afb80
commit 937d68202d
7 changed files with 0 additions and 52 deletions

View File

@@ -52,18 +52,6 @@ func isDirEmpty(dirname string) (status bool, err error) {
return status, err
}
// isDirExist - returns whether given directory exists or not.
func isDirExist(dirname string) (bool, error) {
fi, e := os.Stat(dirname)
if e != nil {
if os.IsNotExist(e) {
return false, nil
}
return false, e
}
return fi.IsDir(), nil
}
// Initialize a new storage disk.
func newPosix(diskPath string) (StorageAPI, error) {
if diskPath == "" {