Skip to content
Snippets Groups Projects
Commit ea93819b authored by Tom Fischer's avatar Tom Fischer
Browse files

[GL/StationBorehole] Remove unused function.

parent daa2ff40
No related branches found
No related tags found
No related merge requests found
...@@ -55,38 +55,6 @@ StationBorehole::~StationBorehole() ...@@ -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, StationBorehole* StationBorehole::createStation(const std::string& name,
double x, double x,
double y, double y,
......
...@@ -40,9 +40,6 @@ public: ...@@ -40,9 +40,6 @@ public:
int date = 0); int date = 0);
~StationBorehole() override; ~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. /// Creates a new borehole object based on the given parameters.
static StationBorehole* createStation(const std::string &name, static StationBorehole* createStation(const std::string &name,
double x, double x,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment