diff --git a/GeoLib/StationBorehole.cpp b/GeoLib/StationBorehole.cpp index 35f278d4aea3974f7ba2f5c2a3bb20c4063f9e65..0ccca123e83df89dd9e1295951c4d7ba99394be1 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 841752d47d3bece118576e7ef09797a58cd8da13..6a2d7071c521b2f12a33eb98567e678070caa634 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);