From 19540e6edc35d3202eb6e8b8ff7671412930f016 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Mon, 30 Sep 2024 22:32:18 +0200 Subject: [PATCH] TextureTools: huh, this deprecated thing should be long gone already. --- doc/changelog.dox | 3 +++ src/Magnum/TextureTools/DistanceField.h | 16 ---------------- 2 files changed, 3 insertions(+), 16 deletions(-) diff --git a/doc/changelog.dox b/doc/changelog.dox index 325508549..13545fcf8 100644 --- a/doc/changelog.dox +++ b/doc/changelog.dox @@ -1612,6 +1612,9 @@ 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.01, in particular: + - @cpp TextureTools::distanceField() @ce, use the + @ref TextureTools::DistanceFieldGL class instead. - Removed APIs deprecated in 2019.10, in particular: - @cpp Math::Color3::Hsv @ce and @cpp Math::Color4::Hsv @ce @ref std::tuple typedefs and @ref Math::Color3::fromHsv() / diff --git a/src/Magnum/TextureTools/DistanceField.h b/src/Magnum/TextureTools/DistanceField.h index e145bd77f..0c273f49a 100644 --- a/src/Magnum/TextureTools/DistanceField.h +++ b/src/Magnum/TextureTools/DistanceField.h @@ -187,22 +187,6 @@ class MAGNUM_TEXTURETOOLS_EXPORT DistanceField { Containers::Pointer _state; }; -#ifdef MAGNUM_BUILD_DEPRECATED -/** -@brief Create a signed distance field -@m_deprecated_since{2019,01} Deprecated due to inefficiency of its - statelessness when doing batch processing. Use the @ref DistanceField class - instead. -*/ -inline CORRADE_DEPRECATED("use the DistanceField class instead") void distanceField(GL::Texture2D& input, GL::Texture2D& output, const Range2Di& rectangle, Int radius, const Vector2i& imageSize - #ifndef MAGNUM_TARGET_GLES - = Vector2i{} - #endif -) { - DistanceField{UnsignedInt(radius)}(input, output, rectangle, imageSize); -} -#endif - }} #else #error this header is available only in the OpenGL build