devmapper: Get rid of unused function HasActivatedDevice()

Looks like nobody is calling HasActivatedDevice(). Get rid of it.

Signed-off-by: Vivek Goyal <vgoyal@redhat.com>
This commit is contained in:
Vivek Goyal 2015-10-01 07:59:12 -04:00
Родитель a3b04de401
Коммит 73f8b46d84
1 изменённых файлов: 0 добавлений и 17 удалений

Просмотреть файл

@ -1800,23 +1800,6 @@ func (devices *DeviceSet) HasDevice(hash string) bool {
return info != nil
}
// HasActivatedDevice return true if the device exists.
func (devices *DeviceSet) HasActivatedDevice(hash string) bool {
info, _ := devices.lookupDevice(hash)
if info == nil {
return false
}
info.lock.Lock()
defer info.lock.Unlock()
devices.Lock()
defer devices.Unlock()
devinfo, _ := devicemapper.GetInfo(info.Name())
return devinfo != nil && devinfo.Exists != 0
}
// List returns a list of device ids.
func (devices *DeviceSet) List() []string {
devices.Lock()