From 15d1616be33b5e66798b5ca6154b0839887d20f1 Mon Sep 17 00:00:00 2001
From: Dmitri Naumov <github@naumov.de>
Date: Sat, 15 Jun 2019 13:52:19 +0200
Subject: [PATCH] Remove unused variables.

CPPCheck warning type: unusedVariable.
---
 Applications/FileIO/Gmsh/GmshReader.cpp                          | 1 -
 ProcessLib/RichardsFlow/CreateRichardsFlowMaterialProperties.cpp | 1 -
 ProcessLib/SmallDeformation/SmallDeformationFEM.h                | 1 -
 .../SmallDeformationNonlocal/SmallDeformationNonlocalFEM.h       | 1 -
 ProcessLib/ThermoHydroMechanics/ThermoHydroMechanicsFEM.h        | 1 -
 5 files changed, 5 deletions(-)

diff --git a/Applications/FileIO/Gmsh/GmshReader.cpp b/Applications/FileIO/Gmsh/GmshReader.cpp
index cbbf36bd239..5cfa730edf8 100644
--- a/Applications/FileIO/Gmsh/GmshReader.cpp
+++ b/Applications/FileIO/Gmsh/GmshReader.cpp
@@ -78,7 +78,6 @@ std::pair<MeshLib::Element*, int> readElement(
     unsigned idx, type, n_tags, dummy;
     int mat_id;
     std::vector<unsigned> node_ids;
-    std::vector<MeshLib::Node*> elem_nodes;
     in >> idx >> type >> n_tags >> mat_id >> dummy;
 
     // skip tags
diff --git a/ProcessLib/RichardsFlow/CreateRichardsFlowMaterialProperties.cpp b/ProcessLib/RichardsFlow/CreateRichardsFlowMaterialProperties.cpp
index a711cb7ffb4..072ae8284de 100644
--- a/ProcessLib/RichardsFlow/CreateRichardsFlowMaterialProperties.cpp
+++ b/ProcessLib/RichardsFlow/CreateRichardsFlowMaterialProperties.cpp
@@ -46,7 +46,6 @@ createRichardsFlowMaterialProperties(
 
     // Get porous properties
     std::vector<int> mat_ids;
-    std::vector<int> mat_krel_ids;
     std::vector<std::unique_ptr<MaterialLib::PorousMedium::Permeability>>
         intrinsic_permeability_models;
     std::vector<std::unique_ptr<MaterialLib::PorousMedium::Porosity>>
diff --git a/ProcessLib/SmallDeformation/SmallDeformationFEM.h b/ProcessLib/SmallDeformation/SmallDeformationFEM.h
index 17c3bc214bb..4c3665fb6d3 100644
--- a/ProcessLib/SmallDeformation/SmallDeformationFEM.h
+++ b/ProcessLib/SmallDeformation/SmallDeformationFEM.h
@@ -389,7 +389,6 @@ public:
                 DisplacementDim>::value;
         auto const n_integration_points = _ip_data.size();
 
-        std::vector<double> ip_sigma_values;
         auto sigma_values =
             Eigen::Map<Eigen::Matrix<double, kelvin_vector_size, Eigen::Dynamic,
                                      Eigen::ColMajor> const>(
diff --git a/ProcessLib/SmallDeformationNonlocal/SmallDeformationNonlocalFEM.h b/ProcessLib/SmallDeformationNonlocal/SmallDeformationNonlocalFEM.h
index 792fcf80b00..5c0a79ef83d 100644
--- a/ProcessLib/SmallDeformationNonlocal/SmallDeformationNonlocalFEM.h
+++ b/ProcessLib/SmallDeformationNonlocal/SmallDeformationNonlocalFEM.h
@@ -705,7 +705,6 @@ public:
                 DisplacementDim>::value;
         auto const n_integration_points = _ip_data.size();
 
-        std::vector<double> ip_sigma_values;
         auto sigma_values =
             Eigen::Map<Eigen::Matrix<double, kelvin_vector_size, Eigen::Dynamic,
                                      Eigen::ColMajor> const>(
diff --git a/ProcessLib/ThermoHydroMechanics/ThermoHydroMechanicsFEM.h b/ProcessLib/ThermoHydroMechanics/ThermoHydroMechanicsFEM.h
index dc03604ec6a..b7df421dbce 100644
--- a/ProcessLib/ThermoHydroMechanics/ThermoHydroMechanicsFEM.h
+++ b/ProcessLib/ThermoHydroMechanics/ThermoHydroMechanicsFEM.h
@@ -131,7 +131,6 @@ private:
         unsigned const n_integration_points =
             _integration_method.getNumberOfPoints();
 
-        std::vector<double> ip_sigma_values;
         auto sigma_values =
             Eigen::Map<Eigen::Matrix<double, kelvin_vector_size, Eigen::Dynamic,
                                      Eigen::ColMajor> const>(
-- 
GitLab