1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-29 18:50:08 +03:00

Feature #3782: Remove unused param from ImageManager::set_image_snapshots

This commit is contained in:
Carlos Martín 2015-07-01 17:56:50 +02:00
parent 1411e4adbb
commit d4c1170eee
4 changed files with 4 additions and 5 deletions

View File

@ -195,9 +195,8 @@ public:
* and of type OS or DATABLOCK.
* @param iid id of image
* @param s snapshot list
* @param failed the associated VM releasing the images is FAILED
*/
void set_image_snapshots(int iid, const Snapshots& s, bool failed);
void set_image_snapshots(int iid, const Snapshots& s);
/**
* Deletes the snapshot of an image

View File

@ -869,7 +869,7 @@ string * ImageManager::format_message(
/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */
void ImageManager::set_image_snapshots(int iid, const Snapshots& s, bool failed)
void ImageManager::set_image_snapshots(int iid, const Snapshots& s)
{
Image * img = ipool->get(iid,true);

View File

@ -2600,7 +2600,7 @@ void VirtualMachine::release_disk_images()
if (it != snapshots.end())
{
imagem->set_image_snapshots(iid, *(it->second), img_error);
imagem->set_image_snapshots(iid, *(it->second));
}
imagem->release_image(oid, iid, img_error);

View File

@ -1099,7 +1099,7 @@ void VirtualMachinePool::delete_attach_disk(int vid)
if (snap != 0)
{
imagem->set_image_snapshots(image_id, *snap, false);
imagem->set_image_snapshots(image_id, *snap);
delete snap;
}