From 5c5ecb5ff8f9b99925e2f4deacf5f273b9854ede Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Wed, 12 Dec 2018 01:00:18 +0100 Subject: [PATCH] Math: removed deprecated (and confusing) normalize() / denormalize(). Deprecated since dd2058cee3f114637ed3ee89fb683e2deda4d8db (December 2016), use more clearly named Math::pack() and unpack() instead. --- doc/changelog.dox | 3 +++ src/Magnum/Math/Functions.h | 7 ------- src/Magnum/Math/Packing.h | 18 ------------------ 3 files changed, 3 insertions(+), 25 deletions(-) diff --git a/doc/changelog.dox b/doc/changelog.dox index e07168335..f27ae8510 100644 --- a/doc/changelog.dox +++ b/doc/changelog.dox @@ -173,6 +173,9 @@ See also: - Removed availability of @ref Math::Color3 and @ref Math::Color4 literals in the root namespace, deprecated since April 2016. Explicitly call @cpp using namespace Math::Literals; @ce instead. +- Removed @cpp Math::normalize() @ce and @cpp Math::denormalize() @ce + functions, deprecated since December 2016. Use @ref Math::pack() and + @ref Math::unpack() instead. @section changelog-2018-10 2018.10 diff --git a/src/Magnum/Math/Functions.h b/src/Magnum/Math/Functions.h index 5a8e1ac49..da3ed7b97 100644 --- a/src/Magnum/Math/Functions.h +++ b/src/Magnum/Math/Functions.h @@ -712,11 +712,4 @@ template inline Vector fma(const Vector CORRADE_DEPRECATED("use unpack() instead") inline FloatingPoint normalize(const Integral& value) { - return unpack(value); -} -#endif - /** @brief Pack floating-point value into an integer representation @@ -189,15 +180,6 @@ template CORRADE_DEPRECATED("use pack() instead") inline Integral denormalize(const FloatingPoint& value) { - return pack(value); -} -#endif - /** @brief Pack 32-bit float value into 16-bit half-float representation