diff --git a/GeoLib/StationBorehole.cpp b/GeoLib/StationBorehole.cpp index 4086256519c951cd770e330a2bb6c6abff9e2b8b..8682faa678911e16e89f1e4a7ef550a6ab1b70bf 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 02b3cdcdbc424d5abdf7418a2aa5337a3a98289a..a54f14d99266a0f2cd6bb3addecef3fb61b159a0 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