From 46f324547c62302fd2567151897f586a11bff027 Mon Sep 17 00:00:00 2001
From: Harald Martini <harald.martini@student.tugraz.at>
Date: Wed, 1 Jun 2022 15:32:53 +0200
Subject: [PATCH] removed unused varibales from InstantiateReports

---
 .../XMLDeclarationMockupReportCompletedVehicle.cs    | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/VectoMockup/VectoMockup/Reports/XMLDeclarationMockupReportCompletedVehicle.cs b/VectoMockup/VectoMockup/Reports/XMLDeclarationMockupReportCompletedVehicle.cs
index bb4d577351..42cacdedc8 100644
--- a/VectoMockup/VectoMockup/Reports/XMLDeclarationMockupReportCompletedVehicle.cs
+++ b/VectoMockup/VectoMockup/Reports/XMLDeclarationMockupReportCompletedVehicle.cs
@@ -32,10 +32,6 @@ namespace TUGraz.VectoMockup.Reports
 		{
 			var inputData = modelData.InputData as IXMLMultistageInputDataProvider;
 
-			var arch = inputData.JobInputData.PrimaryVehicle.Vehicle.ArchitectureID;
-
-			inputData.JobInputData.PrimaryVehicle.Vehicle.VehicleCategory.GetVehicleType();// HEV/PEV - Sx/Px
-
 
 			var ihpc = (inputData.JobInputData.PrimaryVehicle.Vehicle.Components.ElectricMachines?.Entries)?.Count(electric => electric.ElectricMachine.IHPCType != "None") > 0;
 			var iepc = (inputData.JobInputData.PrimaryVehicle.Vehicle.Components.IEPC != null);
@@ -46,7 +42,13 @@ namespace TUGraz.VectoMockup.Reports
 				inputData.JobInputData.PrimaryVehicle.Vehicle.ExemptedVehicle,
 				iepc,
 				ihpc);
-
+			CustomerRpt = _cifFactory.GetCustomerReport(
+				inputData.JobInputData.ConsolidateManufacturingStage.Vehicle.VehicleCategory,
+				inputData.JobInputData.JobType,
+				inputData.JobInputData.PrimaryVehicle.Vehicle.ArchitectureID,
+				inputData.JobInputData.PrimaryVehicle.Vehicle.ExemptedVehicle,
+				iepc,
+				ihpc);
 			//base.InstantiateReports(modelData);
 		}
 
-- 
GitLab