summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Cowgill <jcowgill@debian.org>2024-02-28 19:27:02 +0000
committerJames Cowgill <jcowgill@debian.org>2024-02-28 23:45:25 +0000
commit2ce67d77345345ad46f3b2f37f0c17e876e9e523 (patch)
tree35691903b8c072a2427d77dde254f17183567586
parent91dd69bd084a810825eebd6bc326eb3daeefd5d2 (diff)
Revert "Graphics/Texture: Restore sfTexture_setSrgb for ABI compatibility"
This reverts commit 4fdf793daae47967eb8feb748b7856d525297137. We no longer need this in 2.6.
-rw-r--r--include/SFML/Graphics/Texture.h10
-rw-r--r--src/SFML/Graphics/Texture.cpp7
2 files changed, 0 insertions, 17 deletions
diff --git a/include/SFML/Graphics/Texture.h b/include/SFML/Graphics/Texture.h
index f2fc64c..19b1b9a 100644
--- a/include/SFML/Graphics/Texture.h
+++ b/include/SFML/Graphics/Texture.h
@@ -281,16 +281,6 @@ CSFML_GRAPHICS_API void sfTexture_setSmooth(sfTexture* texture, sfBool smooth);
CSFML_GRAPHICS_API sfBool sfTexture_isSmooth(const sfTexture* texture);
////////////////////////////////////////////////////////////
-/// \brief Deprecated function which has no effect
-///
-/// This function is maintained for ABI compatibility. Due to an
-/// oversight it has never had any useful effect. Use one of the
-/// sfTexture_createSrgb* functions instead.
-///
-////////////////////////////////////////////////////////////
-CSFML_GRAPHICS_API CSFML_DEPRECATED void sfTexture_setSrgb(sfTexture* texture, sfBool sRgb);
-
-////////////////////////////////////////////////////////////
/// \brief Tell whether the texture source is converted from sRGB or not
///
/// \return True if the texture source is converted from sRGB, false if not
diff --git a/src/SFML/Graphics/Texture.cpp b/src/SFML/Graphics/Texture.cpp
index c08bc32..80649e9 100644
--- a/src/SFML/Graphics/Texture.cpp
+++ b/src/SFML/Graphics/Texture.cpp
@@ -318,13 +318,6 @@ sfBool sfTexture_isSmooth(const sfTexture* texture)
}
////////////////////////////////////////////////////////////
-void sfTexture_setSrgb(sfTexture* texture, sfBool sRgb)
-{
- // Function maintained for ABI compatibility until
- // 2.6. Intentionally does nothing.
-}
-
-////////////////////////////////////////////////////////////
sfBool sfTexture_isSrgb(const sfTexture* texture)
{
CSFML_CALL_PTR_RETURN(texture, isSrgb(), sfFalse);