Browse Source

daemon/graphdriver: remove unused graphdriver.IsInitialized()

It's no longer used, and has no external consumers.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Sebastiaan van Stijn 3 years ago
parent
commit
2bc07370ec
1 changed files with 0 additions and 12 deletions
  1. 0 12
      daemon/graphdriver/driver.go

+ 0 - 12
daemon/graphdriver/driver.go

@@ -294,18 +294,6 @@ func scanPriorDrivers(root string) map[string]bool {
 	return driversMap
 }
 
-// IsInitialized checks if the driver's home-directory exists and is non-empty.
-func IsInitialized(driverHome string) bool {
-	_, err := os.Stat(driverHome)
-	if os.IsNotExist(err) {
-		return false
-	}
-	if err != nil {
-		logrus.Warnf("graphdriver.IsInitialized: stat failed: %v", err)
-	}
-	return !isEmptyDir(driverHome)
-}
-
 // isEmptyDir checks if a directory is empty. It is used to check if prior
 // storage-driver directories exist. If an error occurs, it also assumes the
 // directory is not empty (which preserves the behavior _before_ this check