From d15976dd7362bf91bc89a48f40a069559a813d1a Mon Sep 17 00:00:00 2001
From: "Dmitry Yu. Naumov" <github@naumov.de>
Date: Sun, 7 Jun 2015 16:14:06 +0000
Subject: [PATCH] [MaL] Remove unused float normalize(...) function.

---
 MathLib/MathTools.cpp | 5 -----
 MathLib/MathTools.h   | 3 ---
 2 files changed, 8 deletions(-)

diff --git a/MathLib/MathTools.cpp b/MathLib/MathTools.cpp
index 538a4803242..236ceea0810 100644
--- a/MathLib/MathTools.cpp
+++ b/MathLib/MathTools.cpp
@@ -48,11 +48,6 @@ double sqrDist(const double* p0, const double* p1)
 	return scalarProduct<double,3>(v,v);
 }
 
-float normalize(float min, float max, float val)
-{
-	return (val - min) / static_cast<float>(max - min);
-}
-
 double getAngle (const double p0[3], const double p1[3], const double p2[3])
 {
 	const double v0[3] = {p0[0]-p1[0], p0[1]-p1[1], p0[2]-p1[2]};
diff --git a/MathLib/MathTools.h b/MathLib/MathTools.h
index 95458673bed..05aced819a6 100644
--- a/MathLib/MathTools.h
+++ b/MathLib/MathTools.h
@@ -135,9 +135,6 @@ T maxNormDist(const MathLib::TemplatePoint<T>* p0, const MathLib::TemplatePoint<
 	return std::max(x, std::max(y, z));
 }
 
-/** linear normalisation of val from [min, max] into [0,1] */
-float normalize(float min, float max, float val);
-
 /**
  * Let \f$p_0, p_1, p_2 \in R^3\f$. The function getAngle
  * computes the angle between the edges \f$(p_0,p_1)\f$ and \f$(p_1,p_2)\f$
-- 
GitLab