From c13fda7b01838f0f795482d5969ab54acc084b9e Mon Sep 17 00:00:00 2001 From: Dmitri Naumov <dmitri.naumov@ufz.de> Date: Wed, 27 Nov 2019 12:10:54 +0100 Subject: [PATCH] [GL] Remove unused StationBorehole::addLayer(). --- GeoLib/StationBorehole.cpp | 29 ----------------------------- GeoLib/StationBorehole.h | 3 --- 2 files changed, 32 deletions(-) diff --git a/GeoLib/StationBorehole.cpp b/GeoLib/StationBorehole.cpp index 35f278d4aea..0ccca123e83 100644 --- a/GeoLib/StationBorehole.cpp +++ b/GeoLib/StationBorehole.cpp @@ -77,35 +77,6 @@ int StationBorehole::readStratigraphyFile(const std::string &path, return 1; } -int StationBorehole::addLayer(std::list<std::string> fields, StationBorehole* borehole) -{ - if (fields.size() >= 4) /* check if there are enough fields to create a borehole object */ - { - if (fields.front() == borehole->_name) /* check if the name of the - borehole matches the name in - the data */ - { - fields.pop_front(); - - // int layer = atoi(fields.front().c_str()); - fields.pop_front(); - - ERR("StationBorehole::addLayer - assuming correct order"); - double thickness( - strtod(BaseLib::replaceString(",", ".", fields.front()).c_str(), - nullptr)); - fields.pop_front(); - borehole->addSoilLayer(thickness, fields.front()); - } - } - else - { - WARN("StationBorehole::addLayer() - Unexpected file format (Borehole %s).", borehole->_name.c_str()); - return 0; - } - return 1; -} - int StationBorehole::addStratigraphy(const std::vector<Point*> &profile, const std::vector<std::string> &soil_names) { if (((profile.size() - 1) == soil_names.size()) && (!soil_names.empty())) diff --git a/GeoLib/StationBorehole.h b/GeoLib/StationBorehole.h index 841752d47d3..6a2d7071c52 100644 --- a/GeoLib/StationBorehole.h +++ b/GeoLib/StationBorehole.h @@ -81,9 +81,6 @@ public: void addSoilLayer ( double x, double y, double z, const std::string &soil_name); private: - /// Adds a layer for the specified borehole profile based on the information given in the stringlist - static int addLayer(std::list<std::string> fields, StationBorehole* borehole); - /// Creates fake stratigraphies of only one layer with a thickness equal to the borehole depth static void createSurrogateStratigraphies(std::vector<Point*>* boreholes); -- GitLab