From 50fd3bcbb9e2ba77e5b8dd922cd6d919fed118e6 Mon Sep 17 00:00:00 2001 From: Dmitri Naumov <dmitri.naumov@ufz.de> Date: Wed, 27 Nov 2019 15:26:48 +0100 Subject: [PATCH] [App/IO] Remove unused GMSIF::readSoilIDfromFile() GMSInterface::readSoilIDfromFile --- Applications/FileIO/GMSInterface.cpp | 35 ---------------------------- Applications/FileIO/GMSInterface.h | 13 ----------- 2 files changed, 48 deletions(-) diff --git a/Applications/FileIO/GMSInterface.cpp b/Applications/FileIO/GMSInterface.cpp index 656da9da4ba..5f18925d7dc 100644 --- a/Applications/FileIO/GMSInterface.cpp +++ b/Applications/FileIO/GMSInterface.cpp @@ -132,20 +132,6 @@ int GMSInterface::readBoreholesFromGMS(std::vector<GeoLib::Point*>* boreholes, return 1; } -/* - // all boreholes to GMS which each borehole in a single file - void StationIO::writeBoreholesToGMS(const std::vector<GeoLib::Point*> - *stations) - { - //std::vector<std::string> soilID(1); - std::vector<std::string> soilID = readSoilIDfromFile("d:/BodeTimeline.txt"); - for (std::size_t i=0; i<stations->size(); i++) - StationIO::writeBoreholeToGMS(static_cast<GeoLib::StationBorehole*>((*stations)[i]), - std::string("Borehole-" + - static_cast<GeoLib::StationBorehole*>((*stations)[i])->getName() + ".txt"), - soilID); StationIO::writeSoilIDTable(soilID, "SoilIDReference.txt"); - } - */ void GMSInterface::writeBoreholesToGMS( const std::vector<GeoLib::Point*>* stations, const std::string& filename) { @@ -216,27 +202,6 @@ int GMSInterface::writeSoilIDTable(const std::vector<std::string>& soilID, return 1; } -std::vector<std::string> GMSInterface::readSoilIDfromFile( - const std::string& filename) -{ - std::vector<std::string> soilID; - std::string line; - - std::ifstream in(filename.c_str()); - - if (in.is_open()) - { - while (std::getline(in, line)) - { - BaseLib::trim(line); - soilID.push_back(line); - } - } - in.close(); - - return soilID; -} - MeshLib::Mesh* GMSInterface::readGMS3DMMesh(const std::string& filename) { std::string line; diff --git a/Applications/FileIO/GMSInterface.h b/Applications/FileIO/GMSInterface.h index 6b3640bdfe4..9e0e8eafb42 100644 --- a/Applications/FileIO/GMSInterface.h +++ b/Applications/FileIO/GMSInterface.h @@ -66,19 +66,6 @@ public: /// Reads a GMS *.3dm file and converts it to an CFEMesh. static MeshLib::Mesh* readGMS3DMMesh(const std::string& filename); - -private: - /** - * \brief Reads SoilIDs for Borehole export from an external file - * - * The method expects a file with the name of one stratigraphic layer at - * each line. These layers are assigned ascending IDs, i.e. the first name - * gets index 0, the second line gets index 1, etc. \return An array with - * the names of the stratigraphic layers in which the index for each string - * equals its ID. - */ - static std::vector<std::string> readSoilIDfromFile( - const std::string& filename); }; } // namespace FileIO -- GitLab