From 3327f77f7742dc2cd83cd068b52a0480598df3ce Mon Sep 17 00:00:00 2001
From: Dmitri Naumov <dmitri.naumov@ufz.de>
Date: Wed, 27 Nov 2019 14:19:33 +0100
Subject: [PATCH] [GL] Remove unused createSurrogateStratigraphies()

StationBorehole::createSurrogateStratigraphies
---
 GeoLib/StationBorehole.cpp | 10 ----------
 GeoLib/StationBorehole.h   |  3 ---
 2 files changed, 13 deletions(-)

diff --git a/GeoLib/StationBorehole.cpp b/GeoLib/StationBorehole.cpp
index 10482b715a0..4086256519c 100644
--- a/GeoLib/StationBorehole.cpp
+++ b/GeoLib/StationBorehole.cpp
@@ -133,16 +133,6 @@ StationBorehole* StationBorehole::createStation(const std::string &name,
     return station;
 }
 
-void StationBorehole::createSurrogateStratigraphies(std::vector<Point*>* boreholes)
-{
-    std::size_t nBoreholes = boreholes->size();
-    for (std::size_t i = 0; i < nBoreholes; i++)
-    {
-        auto* bore = static_cast<StationBorehole*>((*boreholes)[i]);
-        bore->addSoilLayer(bore->getDepth(), "depth");
-    }
-}
-
 void StationBorehole::addSoilLayer ( double thickness, const std::string &soil_name)
 {
     /*
diff --git a/GeoLib/StationBorehole.h b/GeoLib/StationBorehole.h
index 9479a6b4812..02b3cdcdbc4 100644
--- a/GeoLib/StationBorehole.h
+++ b/GeoLib/StationBorehole.h
@@ -78,9 +78,6 @@ public:
     void addSoilLayer ( double x, double y, double z, const std::string &soil_name);
 
 private:
-    /// Creates fake stratigraphies of only one layer with a thickness equal to the borehole depth
-    static void createSurrogateStratigraphies(std::vector<Point*>* boreholes);
-
     /// Reads the specified file containing borehole stratigraphies into an vector of stringlists
     static int readStratigraphyFile(const std::string &path,
                                     std::vector<std::list<std::string> > &data);
-- 
GitLab