diff --git a/pkg/volume/flexvolume/detacher.go b/pkg/volume/flexvolume/detacher.go index d2aba85b93..c55ffbfa47 100644 --- a/pkg/volume/flexvolume/detacher.go +++ b/pkg/volume/flexvolume/detacher.go @@ -19,7 +19,6 @@ package flexvolume import ( "fmt" "os" - "time" "github.com/golang/glog" "k8s.io/apimachinery/pkg/types" @@ -47,18 +46,6 @@ func (d *flexVolumeDetacher) Detach(volumeName string, hostName types.NodeName) return err } -// WaitForDetach is part of the volume.Detacher interface. -func (d *flexVolumeDetacher) WaitForDetach(devicePath string, timeout time.Duration) error { - call := d.plugin.NewDriverCallWithTimeout(waitForDetachCmd, timeout) - call.Append(devicePath) - - _, err := call.Run() - if isCmdNotSupportedErr(err) { - return (*detacherDefaults)(d).WaitForDetach(devicePath, timeout) - } - return err -} - // UnmountDevice is part of the volume.Detacher interface. func (d *flexVolumeDetacher) UnmountDevice(deviceMountPath string) error { diff --git a/pkg/volume/flexvolume/driver-call.go b/pkg/volume/flexvolume/driver-call.go index 98e5640224..5b089df07a 100644 --- a/pkg/volume/flexvolume/driver-call.go +++ b/pkg/volume/flexvolume/driver-call.go @@ -39,7 +39,6 @@ const ( mountDeviceCmd = "mountdevice" detachCmd = "detach" - waitForDetachCmd = "waitfordetach" unmountDeviceCmd = "unmountdevice" mountCmd = "mount"