From 54e22c5d94b7e8fa693463817f108d9cc7d55b64 Mon Sep 17 00:00:00 2001 From: Guillaume Bougard Date: Fri, 22 Feb 2019 20:00:15 +0100 Subject: [PATCH] unittest: make t/03-var.t happy --- lib/FusionInventory/Agent/SNMP/Device/Components.pm | 3 --- .../Agent/Task/Inventory/Virtualization/Virtuozzo.pm | 1 - lib/FusionInventory/Agent/Task/Inventory/Win32/AntiVirus.pm | 2 +- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/FusionInventory/Agent/SNMP/Device/Components.pm b/lib/FusionInventory/Agent/SNMP/Device/Components.pm index ab18063e70..4beba00955 100644 --- a/lib/FusionInventory/Agent/SNMP/Device/Components.pm +++ b/lib/FusionInventory/Agent/SNMP/Device/Components.pm @@ -179,9 +179,6 @@ sub new { sub getPhysicalComponents { my ($self) = @_; - my $device = $self->{device}; - my $logger = $device->{logger}; - # INDEX was still computed during object creation my @keys = sort grep { $_ ne 'INDEX' } keys(%physical_components_variables); diff --git a/lib/FusionInventory/Agent/Task/Inventory/Virtualization/Virtuozzo.pm b/lib/FusionInventory/Agent/Task/Inventory/Virtualization/Virtuozzo.pm index 68fc07a5a9..8909a16b89 100644 --- a/lib/FusionInventory/Agent/Task/Inventory/Virtualization/Virtuozzo.pm +++ b/lib/FusionInventory/Agent/Task/Inventory/Virtualization/Virtuozzo.pm @@ -20,7 +20,6 @@ sub doInventory { my (%params) = @_; my $inventory = $params{inventory}; - my $logger = $params{logger}; foreach my $vz (_parseVzlist(%params)) { $inventory->addEntry( diff --git a/lib/FusionInventory/Agent/Task/Inventory/Win32/AntiVirus.pm b/lib/FusionInventory/Agent/Task/Inventory/Win32/AntiVirus.pm index b87c068061..5e99ccb083 100644 --- a/lib/FusionInventory/Agent/Task/Inventory/Win32/AntiVirus.pm +++ b/lib/FusionInventory/Agent/Task/Inventory/Win32/AntiVirus.pm @@ -353,7 +353,7 @@ sub _setFSecureInfos { } sub _setBitdefenderInfos { - my ($antivirus, $logger) = @_; + my ($antivirus) = @_; my $bitdefenderReg = _getSoftwareRegistryKeys( 'BitDefender\About',