[pve-devel] [PATCH guest-common 4/5] remove the now unused remove_vmid_jobs

Fabian Ebner f.ebner at proxmox.com
Wed Oct 14 13:36:27 CEST 2020


Signed-off-by: Fabian Ebner <f.ebner at proxmox.com>
---

I *think* that I have all the repositiories where this would
potentially be used, but please double check that there are
no users of this anywhere.

 PVE/ReplicationConfig.pm | 14 --------------
 1 file changed, 14 deletions(-)

diff --git a/PVE/ReplicationConfig.pm b/PVE/ReplicationConfig.pm
index 77905a0..a220594 100644
--- a/PVE/ReplicationConfig.pm
+++ b/PVE/ReplicationConfig.pm
@@ -265,20 +265,6 @@ sub delete_job {
     lock($code);
 }
 
-sub remove_vmid_jobs {
-    my ($vmid) = @_;
-
-    my $code = sub {
-	my $cfg = __PACKAGE__->new();
-	foreach my $id (keys %{$cfg->{ids}}) {
-	    delete $cfg->{ids}->{$id} if ($cfg->{ids}->{$id}->{guest} == $vmid);
-	}
-	$cfg->write();
-    };
-
-    lock($code);
-}
-
 sub swap_source_target_nolock {
     my ($jobid) = @_;
 
-- 
2.20.1






More information about the pve-devel mailing list