Skip to content
Snippets Groups Projects
Commit 10762aa0 authored by Dmitri Naumov's avatar Dmitri Naumov
Browse files

[App/IO] Remove unused GMSInterface::getSoilID().

parent 808e587f
No related branches found
No related tags found
No related merge requests found
...@@ -177,7 +177,6 @@ void GMSInterface::writeBoreholesToGMS( ...@@ -177,7 +177,6 @@ void GMSInterface::writeBoreholesToGMS(
{ {
continue; continue;
} }
// idx = getSoilID(soilID, soilNames[i]);
current_soil_name = soilNames[i]; current_soil_name = soilNames[i];
out << station->getName() << "\t" << std::fixed out << station->getName() << "\t" << std::fixed
...@@ -195,20 +194,6 @@ void GMSInterface::writeBoreholesToGMS( ...@@ -195,20 +194,6 @@ void GMSInterface::writeBoreholesToGMS(
out.close(); out.close();
} }
std::size_t GMSInterface::getSoilID(std::vector<std::string>& soilID,
std::string& soilName)
{
for (std::size_t j = 0; j < soilID.size(); j++)
{
if (soilID[j] == soilName)
{
return j;
}
}
soilID.push_back(soilName);
return soilID.size() - 1;
}
int GMSInterface::writeSoilIDTable(const std::vector<std::string>& soilID, int GMSInterface::writeSoilIDTable(const std::vector<std::string>& soilID,
const std::string& filename) const std::string& filename)
{ {
......
...@@ -79,11 +79,6 @@ private: ...@@ -79,11 +79,6 @@ private:
*/ */
static std::vector<std::string> readSoilIDfromFile( static std::vector<std::string> readSoilIDfromFile(
const std::string& filename); const std::string& filename);
/// Finds the ID assigned to soilName or creates a new one ( this method is
/// called from writeBoreholeToGMS() )
static std::size_t getSoilID(std::vector<std::string>& soilID,
std::string& soilName);
}; };
} // namespace FileIO } // namespace FileIO
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