From 89eaaa5396a5c2842adc1f31154c956a36161d4d Mon Sep 17 00:00:00 2001 From: Dmitri Naumov <dmitri.naumov@ufz.de> Date: Wed, 27 Nov 2019 15:28:28 +0100 Subject: [PATCH] [GL] Remove unused SB::readStratigraphyFile. StationBorehole::readStratigraphyFile --- GeoLib/StationBorehole.cpp | 23 ----------------------- GeoLib/StationBorehole.h | 4 ---- 2 files changed, 27 deletions(-) diff --git a/GeoLib/StationBorehole.cpp b/GeoLib/StationBorehole.cpp index 4086256519c..8682faa6789 100644 --- a/GeoLib/StationBorehole.cpp +++ b/GeoLib/StationBorehole.cpp @@ -54,29 +54,6 @@ StationBorehole::~StationBorehole() } } -int StationBorehole::readStratigraphyFile(const std::string &path, - std::vector<std::list<std::string> > &data) -{ - std::string line; - std::ifstream in( path.c_str() ); - - if (!in.is_open()) - { - WARN("StationBorehole::readStratigraphyFile() - Could not open file %s.", path.c_str()); - return 0; - } - - while (std::getline(in, line)) - { - std::list<std::string> fields = BaseLib::splitString(line, '\t'); - data.push_back(fields); - } - - in.close(); - - return 1; -} - StationBorehole* StationBorehole::createStation(const std::string &line) { StationBorehole* borehole = new StationBorehole(); diff --git a/GeoLib/StationBorehole.h b/GeoLib/StationBorehole.h index 02b3cdcdbc4..a54f14d9926 100644 --- a/GeoLib/StationBorehole.h +++ b/GeoLib/StationBorehole.h @@ -78,10 +78,6 @@ public: void addSoilLayer ( double x, double y, double z, const std::string &soil_name); private: - /// Reads the specified file containing borehole stratigraphies into an vector of stringlists - static int readStratigraphyFile(const std::string &path, - std::vector<std::list<std::string> > &data); - //long profile_type; //std::vector<long> _soilType; double _depth{0}; // depth of the borehole -- GitLab