From a13d3d6c9aa2e98fffba60430b997588ffa2b406 Mon Sep 17 00:00:00 2001
From: Thomas Fischer <thomas.fischer@ufz.de>
Date: Fri, 9 Nov 2018 13:27:53 +0100
Subject: [PATCH] [PL/ST] Rm unused vars in VolumetricSourceTerm.

---
 ProcessLib/SourceTerms/CreateSourceTerm.cpp           | 3 +--
 ProcessLib/SourceTerms/CreateVolumetricSourceTerm.cpp | 6 ++----
 ProcessLib/SourceTerms/CreateVolumetricSourceTerm.h   | 3 +--
 ProcessLib/SourceTerms/VolumetricSourceTerm.cpp       | 1 -
 ProcessLib/SourceTerms/VolumetricSourceTerm.h         | 1 -
 5 files changed, 4 insertions(+), 10 deletions(-)

diff --git a/ProcessLib/SourceTerms/CreateSourceTerm.cpp b/ProcessLib/SourceTerms/CreateSourceTerm.cpp
index e111766ddc9..b6f4c270954 100644
--- a/ProcessLib/SourceTerms/CreateSourceTerm.cpp
+++ b/ProcessLib/SourceTerms/CreateSourceTerm.cpp
@@ -83,8 +83,7 @@ std::unique_ptr<SourceTerm> createSourceTerm(
                 std::move(source_term_mesh_subset)));
         return ProcessLib::createVolumetricSourceTerm(
             config.config, config.mesh, std::move(dof_table_source_term),
-            parameters, integration_order, shapefunction_order, variable_id,
-            *config.component_id);
+            parameters, integration_order, shapefunction_order);
     }
 
     if (type == "Python")
diff --git a/ProcessLib/SourceTerms/CreateVolumetricSourceTerm.cpp b/ProcessLib/SourceTerms/CreateVolumetricSourceTerm.cpp
index 0285ce9bdbf..d75500f9e20 100644
--- a/ProcessLib/SourceTerms/CreateVolumetricSourceTerm.cpp
+++ b/ProcessLib/SourceTerms/CreateVolumetricSourceTerm.cpp
@@ -23,8 +23,7 @@ std::unique_ptr<SourceTerm> createVolumetricSourceTerm(
     MeshLib::Mesh const& source_term_mesh,
     std::unique_ptr<NumLib::LocalToGlobalIndexMap> source_term_dof_table,
     std::vector<std::unique_ptr<ParameterBase>> const& parameters,
-    unsigned const integration_order, unsigned const shapefunction_order,
-    int const variable_id, int const component_id)
+    unsigned const integration_order, unsigned const shapefunction_order)
 {
     //! \ogs_file_param{prj__process_variables__process_variable__source_terms__source_term__type}
     config.checkConfigParameter("type", "Volumetric");
@@ -43,8 +42,7 @@ std::unique_ptr<SourceTerm> createVolumetricSourceTerm(
 
     return std::make_unique<VolumetricSourceTerm>(
         source_term_mesh, std::move(source_term_dof_table), integration_order,
-        shapefunction_order, variable_id, component_id,
-        volumetric_source_term);
+        shapefunction_order, volumetric_source_term);
 }
 
 }  // namespace ProcessLib
diff --git a/ProcessLib/SourceTerms/CreateVolumetricSourceTerm.h b/ProcessLib/SourceTerms/CreateVolumetricSourceTerm.h
index c01d5579574..e300528c09b 100644
--- a/ProcessLib/SourceTerms/CreateVolumetricSourceTerm.h
+++ b/ProcessLib/SourceTerms/CreateVolumetricSourceTerm.h
@@ -37,7 +37,6 @@ std::unique_ptr<SourceTerm> createVolumetricSourceTerm(
     MeshLib::Mesh const& source_term_mesh,
     std::unique_ptr<NumLib::LocalToGlobalIndexMap> source_term_dof_table,
     std::vector<std::unique_ptr<ParameterBase>> const& parameters,
-    unsigned const integration_order, unsigned const shapefunction_order,
-    int const variable_id, int const component_id);
+    unsigned const integration_order, unsigned const shapefunction_order);
 
 }   // namespace ProcessLib
diff --git a/ProcessLib/SourceTerms/VolumetricSourceTerm.cpp b/ProcessLib/SourceTerms/VolumetricSourceTerm.cpp
index 2656badbd18..785ca74e957 100644
--- a/ProcessLib/SourceTerms/VolumetricSourceTerm.cpp
+++ b/ProcessLib/SourceTerms/VolumetricSourceTerm.cpp
@@ -17,7 +17,6 @@ VolumetricSourceTerm::VolumetricSourceTerm(
     MeshLib::Mesh const& source_term_mesh,
     std::unique_ptr<NumLib::LocalToGlobalIndexMap> source_term_dof_table,
     unsigned const integration_order, unsigned const shapefunction_order,
-    int const variable_id, int const component_id,
     Parameter<double> const& volumetric_source_term)
     : SourceTerm(std::move(source_term_dof_table)),
       _volumetric_source_term(volumetric_source_term)
diff --git a/ProcessLib/SourceTerms/VolumetricSourceTerm.h b/ProcessLib/SourceTerms/VolumetricSourceTerm.h
index 07d5677a45f..8225a2dbda9 100644
--- a/ProcessLib/SourceTerms/VolumetricSourceTerm.h
+++ b/ProcessLib/SourceTerms/VolumetricSourceTerm.h
@@ -24,7 +24,6 @@ public:
         MeshLib::Mesh const& source_term_mesh,
         std::unique_ptr<NumLib::LocalToGlobalIndexMap> source_term_dof_table,
         unsigned const integration_order, unsigned const shapefunction_order,
-        int const variable_id, int const component_id,
         Parameter<double> const& volumetric_source_term);
 
     void integrate(const double t, GlobalVector const& x, GlobalVector& b,
-- 
GitLab