rbd: remove redundant rbdVol.getTrashPath() function

This commit removes rbdVol.getTrashPath() function
since it is no longer being used due to introduction
of go-ceph rbd admin task api for deletion.

Signed-off-by: Rakshith R <rar@redhat.com>
This commit is contained in:
Rakshith R 2021-11-11 10:02:41 +05:30 committed by mergify[bot]
parent 9adb25691c
commit 420aa9ec57

View File

@ -617,16 +617,6 @@ func isCephMgrSupported(ctx context.Context, clusterID string, err error) bool {
return true return true
} }
// getTrashPath returns the image path for trash operation.
func (rv *rbdVolume) getTrashPath() string {
trashPath := rv.Pool
if rv.RadosNamespace != "" {
trashPath = trashPath + "/" + rv.RadosNamespace
}
return trashPath + "/" + rv.ImageID
}
// ensureImageCleanup finds image in trash and if found removes it // ensureImageCleanup finds image in trash and if found removes it
// from trash. // from trash.
func (rv *rbdVolume) ensureImageCleanup(ctx context.Context) error { func (rv *rbdVolume) ensureImageCleanup(ctx context.Context) error {