From ea93819bb1cb22956c85a15ab2247d53ed4532d5 Mon Sep 17 00:00:00 2001 From: Thomas Fischer <thomas.fischer@ufz.de> Date: Mon, 21 Jun 2021 15:04:15 +0200 Subject: [PATCH] [GL/StationBorehole] Remove unused function. --- GeoLib/StationBorehole.cpp | 32 -------------------------------- GeoLib/StationBorehole.h | 3 --- 2 files changed, 35 deletions(-) diff --git a/GeoLib/StationBorehole.cpp b/GeoLib/StationBorehole.cpp index 4d75c2c0026..5d8732c83c5 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 34ab026fd3c..4d75b58f177 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, -- GitLab