From 5a93c5c6b2f3b58a07810521d6ddd9292bbd22e7 Mon Sep 17 00:00:00 2001
From: Thomas Fischer <thomas.fischer@ufz.de>
Date: Tue, 15 Jan 2013 10:40:18 +0100
Subject: [PATCH] Removed unused method Polyline::getLengthVec().

---
 GeoLib/Polyline.cpp | 15 +++------------
 GeoLib/Polyline.h   |  6 ------
 2 files changed, 3 insertions(+), 18 deletions(-)

diff --git a/GeoLib/Polyline.cpp b/GeoLib/Polyline.cpp
index b9311a997d4..147e1f2d1cd 100644
--- a/GeoLib/Polyline.cpp
+++ b/GeoLib/Polyline.cpp
@@ -104,15 +104,11 @@ void Polyline::insertPoint(size_t pos, size_t pnt_id)
 			const size_t s(_length.size());
 			for (size_t k(2); k < s; k++)
 				_length[k] += _length[1];
-		}
-		else
-		{
-			if (pos == _ply_pnt_ids.size() - 1)
-			{
+		} else {
+			if (pos == _ply_pnt_ids.size() - 1) {
 				// insert at last position
 				double act_dist(sqrt(MathLib::sqrDist(
-				                             _ply_pnts[_ply_pnt_ids[_ply_pnt_ids.
-				                                                    size() - 2]],
+				                             _ply_pnts[_ply_pnt_ids[_ply_pnt_ids.size() - 2]],
 				                             _ply_pnts[pnt_id])));
 				double dist_until_now (0.0);
 				if (_ply_pnt_ids.size() > 2)
@@ -227,11 +223,6 @@ double Polyline::getLength (size_t k) const
 	return _length[k];
 }
 
-const std::vector<double>& Polyline::getLengthVec () const
-{
-	return _length;
-}
-
 Polyline* Polyline::constructPolylineFromSegments(const std::vector<Polyline*> &ply_vec,
                                                   double prox)
 {
diff --git a/GeoLib/Polyline.h b/GeoLib/Polyline.h
index fa3bafc2acf..31ef26b3ba7 100644
--- a/GeoLib/Polyline.h
+++ b/GeoLib/Polyline.h
@@ -143,12 +143,6 @@ public:
 	 */
 	double getLength (std::size_t k) const;
 
-	/**
-	 * get the complete length vector
-	 * @return the length vector of the polyline
-	 */
-	const std::vector<double>& getLengthVec () const;
-
 	friend bool operator==(Polyline const& lhs, Polyline const& rhs);
 protected:
 	/**
-- 
GitLab