From 7ccf22e1d05c0f3470c826bb7f2c5c2bad416450 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sun, 15 Jan 2023 20:39:00 +0100 Subject: [PATCH] Math: remove swizzle() that was deprecated since 2019.10. --- doc/changelog.dox | 2 ++ src/Magnum/Math/Swizzle.h | 9 --------- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/doc/changelog.dox b/doc/changelog.dox index 7a5be3d10..f36c4a157 100644 --- a/doc/changelog.dox +++ b/doc/changelog.dox @@ -1132,6 +1132,8 @@ See also: @cpp Trade::AbstractMaterialData::AbstractMaterialData(MaterialType, Flags, MaterialAlphaMode, Float, const void*) @ce and @cpp Trade::PhongMaterialData::PhongMaterialData(Flags, MaterialAlphaMode, Float, Float, const void*) @ce constructors or directly the new @ref Trade::MaterialData class +- Removed APIs deprecated in 2019.10, in particular: + - @cpp Math::swizzle() @ce, use @ref Math::gather() instead - All includes of @ref Corrade/Containers/PointerStl.h and @ref Corrade/Containers/ArrayViewStl.h that were added in 2019.01 for preserving backwards compatibility after the move from @ref std::unique_ptr diff --git a/src/Magnum/Math/Swizzle.h b/src/Magnum/Math/Swizzle.h index 701706bd4..173476a67 100644 --- a/src/Magnum/Math/Swizzle.h +++ b/src/Magnum/Math/Swizzle.h @@ -154,15 +154,6 @@ template constexpr T scatter(const T& vector, const return Implementation::scatterRecursive(vector, values, 0); } -#ifdef MAGNUM_BUILD_DEPRECATED -/** @brief @copybrief gather() - * @m_deprecated_since{2019,10} Use @ref gather() instead. - */ -template CORRADE_DEPRECATED("use gather() instead") constexpr typename Implementation::TypeForSize::Type swizzle(const T& vector) { - return gather(vector); -} -#endif - }} #endif