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

[GL] StationBorehole: Remove unused find().

parent 8f14465c
No related branches found
No related tags found
No related merge requests found
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
#include "StationBorehole.h" #include "StationBorehole.h"
#include <algorithm>
#include <cmath> #include <cmath>
#include <cstdlib> #include <cstdlib>
#include <fstream> #include <fstream>
...@@ -53,19 +54,6 @@ StationBorehole::~StationBorehole() ...@@ -53,19 +54,6 @@ StationBorehole::~StationBorehole()
} }
} }
int StationBorehole::find(const std::string &str)
{
std::size_t size = _soilName.size();
for (std::size_t i = 0; i < size; i++)
{
if (_soilName[i].find(str) == 0)
{
return 1;
}
}
return 0;
}
int StationBorehole::readStratigraphyFile(const std::string &path, int StationBorehole::readStratigraphyFile(const std::string &path,
std::vector<std::list<std::string> > &data) std::vector<std::list<std::string> > &data)
{ {
......
...@@ -63,10 +63,6 @@ public: ...@@ -63,10 +63,6 @@ public:
* assumes that everything is in right order and will work out fine! * assumes that everything is in right order and will work out fine!
*/ */
static int addStratigraphies(const std::string &path, std::vector<Point*>* boreholes); static int addStratigraphies(const std::string &path, std::vector<Point*>* boreholes);
/// Finds the given string in the vector of soil-names
int find(const std::string &str);
// Returns the depth of the borehole // Returns the depth of the borehole
double getDepth() const { return _depth; } double getDepth() const { return _depth; }
......
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