mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
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>
This commit is contained in:
parent
d570bc4922
commit
2bc07370ec
1 changed files with 0 additions and 12 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue