server: Remove deadcode. (#2699)

This commit is contained in:
Harshavardhana
2016-09-14 13:43:08 -07:00
committed by GitHub
parent 6533927237
commit 1e6d67b16d
5 changed files with 6 additions and 31 deletions

View File

@@ -33,17 +33,6 @@ func isSysErrNotDir(err error) bool {
return false
}
// Check if the given error corresponds to EISDIR (is a directory)
func isSysErrIsDir(err error) bool {
if pathErr, ok := err.(*os.PathError); ok {
switch pathErr.Err {
case syscall.EISDIR:
return true
}
}
return false
}
// Check if the given error corresponds to ENOTEMPTY for unix
// and ERROR_DIR_NOT_EMPTY for windows (directory not empty)
func isSysErrNotEmpty(err error) bool {