5
0
mirror of git://git.proxmox.com/git/qemu-server.git synced 2025-01-08 21:18:03 +03:00

cleanup: get rid of unnecessary closures

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
This commit is contained in:
Fabian Ebner 2020-04-29 13:34:08 +02:00 committed by Thomas Lamprecht
parent 0091afc795
commit 0b953b8e34

View File

@ -4339,17 +4339,10 @@ sub foreach_volid {
include_unused => 1,
};
PVE::QemuConfig->foreach_volume_full($conf, $include_opts, sub {
my ($ds, $drive) = @_;
$test_volid->($ds, $drive);
});
PVE::QemuConfig->foreach_volume_full($conf, $include_opts, $test_volid);
foreach my $snapname (keys %{$conf->{snapshots}}) {
my $snap = $conf->{snapshots}->{$snapname};
PVE::QemuConfig->foreach_volume_full($snap, $include_opts, sub {
my ($ds, $drive) = @_;
$test_volid->($ds, $drive, $snapname);
});
PVE::QemuConfig->foreach_volume_full($snap, $include_opts, $test_volid, $snapname);
}
foreach my $volid (keys %$volhash) {