From cd0aaa2ed75360b3481548f343d40d73b82c59ef Mon Sep 17 00:00:00 2001
From: Dmitri Naumov <github@naumov.de>
Date: Wed, 12 May 2021 20:22:21 +0200
Subject: [PATCH] [App/U] Remove unused variables and arguments.

---
 Applications/Utils/FileConverter/NetCdfConverter.cpp        | 5 ++---
 Applications/Utils/MeshGeoTools/VerticalSliceFromLayers.cpp | 4 +---
 2 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/Applications/Utils/FileConverter/NetCdfConverter.cpp b/Applications/Utils/FileConverter/NetCdfConverter.cpp
index b199acb1e34..b5626adc44b 100644
--- a/Applications/Utils/FileConverter/NetCdfConverter.cpp
+++ b/Applications/Utils/FileConverter/NetCdfConverter.cpp
@@ -434,7 +434,7 @@ static std::vector<std::size_t> getLength(NcVar const& var,
     return length;
 }
 
-static std::vector<double> getData(NcFile const& dataset, NcVar const& var,
+static std::vector<double> getData(NcVar const& var,
                                    std::size_t const total_length,
                                    std::size_t const time_step,
                                    std::vector<std::size_t> const& length)
@@ -562,8 +562,7 @@ static bool convert(NcFile const& dataset, NcVar const& var,
                 ? std::string(" time step " + std::to_string(i))
                 : "";
         std::cout << "Converting" << step_str << "...\n";
-        std::vector<double> data_vec =
-            getData(dataset, var, array_length, i, length);
+        std::vector<double> data_vec = getData(var, array_length, i, length);
 
         // reverse lines in vertical direction if file has its origin in the
         // northwest corner
diff --git a/Applications/Utils/MeshGeoTools/VerticalSliceFromLayers.cpp b/Applications/Utils/MeshGeoTools/VerticalSliceFromLayers.cpp
index 6d6a07f80b5..42f91b76888 100644
--- a/Applications/Utils/MeshGeoTools/VerticalSliceFromLayers.cpp
+++ b/Applications/Utils/MeshGeoTools/VerticalSliceFromLayers.cpp
@@ -166,7 +166,6 @@ void mergeGeometries(GeoLib::GEOObjects& geo,
         lines->push_back(line);
     }
 
-    std::size_t const n_lines = lines->size();
     geo.addPointVec(std::move(points), merged_geo_name);
     geo.addPolylineVec(std::move(lines), merged_geo_name);
 }
@@ -229,8 +228,7 @@ MeshLib::Mesh* generateMesh(GeoLib::GEOObjects& geo,
         geo, true, FileIO::GMSH::MeshDensityAlgorithm::FixedMeshDensity, res, 0,
         0, gmsh_geo, false, false);
     gmsh_io.writePhysicalGroups(true);
-    bool const success =
-        BaseLib::IO::writeStringToFile(gmsh_io.writeToString(), gmsh_geo_name);
+    BaseLib::IO::writeStringToFile(gmsh_io.writeToString(), gmsh_geo_name);
 
     std::string const gmsh_mesh_name = output_name + ".msh";
     std::string gmsh_command = "gmsh -2 -algo meshadapt " + gmsh_geo_name;
-- 
GitLab