diff --git a/GeoLib/StationBorehole.cpp b/GeoLib/StationBorehole.cpp index 4d75c2c0026ae6f211018ea5906a10cb3053fd0f..5d8732c83c52e461ece0144692fe787aa6e55f78 100644 --- a/GeoLib/StationBorehole.cpp +++ b/GeoLib/StationBorehole.cpp @@ -55,38 +55,6 @@ StationBorehole::~StationBorehole() } } -StationBorehole* StationBorehole::createStation(const std::string& line) -{ - std::list<std::string> fields = BaseLib::splitString(line, '\t'); - - if (fields.size() < 5) - { - WARN("Station::createStation() - Unexpected file format."); - return nullptr; - } - auto name = fields.front(); - fields.pop_front(); - auto const x = strtod( - BaseLib::replaceString(",", ".", fields.front()).c_str(), nullptr); - fields.pop_front(); - auto const y = strtod( - BaseLib::replaceString(",", ".", fields.front()).c_str(), nullptr); - fields.pop_front(); - auto const z = strtod( - BaseLib::replaceString(",", ".", fields.front()).c_str(), nullptr); - fields.pop_front(); - auto const depth = strtod( - BaseLib::replaceString(",", ".", fields.front()).c_str(), nullptr); - fields.pop_front(); - int date = 0; - if (! fields.empty()) - { - date = BaseLib::strDate2int(fields.front()); - fields.pop_front(); - } - return new StationBorehole(x, y, z, depth, name, date); -} - StationBorehole* StationBorehole::createStation(const std::string& name, double x, double y, diff --git a/GeoLib/StationBorehole.h b/GeoLib/StationBorehole.h index 34ab026fd3cf6b0734cbbd75247516a5b94c0062..4d75b58f1778a0214eca322355253f7d5789b3b1 100644 --- a/GeoLib/StationBorehole.h +++ b/GeoLib/StationBorehole.h @@ -40,9 +40,6 @@ public: int date = 0); ~StationBorehole() override; - /// Creates a StationBorehole-object from a string (assuming the string has the right format) - static StationBorehole* createStation(const std::string &line); - /// Creates a new borehole object based on the given parameters. static StationBorehole* createStation(const std::string &name, double x,