From 0bf768d831dc20772f20e10e071164b73d27b7d7 Mon Sep 17 00:00:00 2001
From: Dmitri Naumov <dmitri.naumov@ufz.de>
Date: Wed, 27 Nov 2019 15:50:06 +0100
Subject: [PATCH] [App/IO] Remove unused GMSIF::writeSoilIDTable()

---
 Applications/FileIO/GMSInterface.cpp | 22 ----------------------
 Applications/FileIO/GMSInterface.h   |  5 -----
 2 files changed, 27 deletions(-)

diff --git a/Applications/FileIO/GMSInterface.cpp b/Applications/FileIO/GMSInterface.cpp
index 5f18925d7dc..2f146742c15 100644
--- a/Applications/FileIO/GMSInterface.cpp
+++ b/Applications/FileIO/GMSInterface.cpp
@@ -180,28 +180,6 @@ void GMSInterface::writeBoreholesToGMS(
     out.close();
 }
 
-int GMSInterface::writeSoilIDTable(const std::vector<std::string>& soilID,
-                                   const std::string& filename)
-{
-    std::ofstream out(filename.c_str(), std::ios::out);
-
-    // write header
-    out << "ID"
-        << "\t" << std::fixed << "Soil name"
-        << "\n";
-
-    // write table
-    std::size_t nIDs = soilID.size();
-    for (std::size_t i = 0; i < nIDs; i++)
-    {
-        out << i << "\t" << std::fixed << soilID[i] << "\t"
-            << "\n";
-    }
-    out.close();
-
-    return 1;
-}
-
 MeshLib::Mesh* GMSInterface::readGMS3DMMesh(const std::string& filename)
 {
     std::string line;
diff --git a/Applications/FileIO/GMSInterface.h b/Applications/FileIO/GMSInterface.h
index 9e0e8eafb42..94cb79e7e1f 100644
--- a/Applications/FileIO/GMSInterface.h
+++ b/Applications/FileIO/GMSInterface.h
@@ -59,11 +59,6 @@ public:
     static int readBoreholesFromGMS(std::vector<GeoLib::Point*>* boreholes,
                                     const std::string& filename);
 
-    /// Writes a file that assigns each soilID-index in the GMS export file a
-    /// name.
-    static int writeSoilIDTable(const std::vector<std::string>& soilID,
-                                const std::string& filename);
-
     /// Reads a GMS *.3dm file and converts it to an CFEMesh.
     static MeshLib::Mesh* readGMS3DMMesh(const std::string& filename);
 };
-- 
GitLab