SDL_ttf: Remove deprecated TTF_GetFontKerningSize

From 2e0a1080da28b9ab0b54523b26530f61850446b2 Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[EMAIL REDACTED]>
Date: Fri, 8 Sep 2023 00:35:26 +0200
Subject: [PATCH] Remove deprecated TTF_GetFontKerningSize

---
 include/SDL3_ttf/SDL_ttf.h | 21 ---------------------
 src/SDL_ttf.c              | 11 -----------
 src/SDL_ttf.sym            |  1 -
 3 files changed, 33 deletions(-)

diff --git a/include/SDL3_ttf/SDL_ttf.h b/include/SDL3_ttf/SDL_ttf.h
index dc86fc19..205b81a6 100644
--- a/include/SDL3_ttf/SDL_ttf.h
+++ b/include/SDL3_ttf/SDL_ttf.h
@@ -2102,27 +2102,6 @@ extern DECLSPEC void SDLCALL TTF_Quit(void);
  */
 extern DECLSPEC int SDLCALL TTF_WasInit(void);
 
-/**
- * Query the kerning size of two glyphs indices.
- *
- * \deprecated This function accidentally requires FreeType font indexes,
- *             not codepoints, which we don't expose through this API, so
- *             it could give wildly incorrect results, especially with
- *             non-ASCII values. Going forward, please use
- *             TTF_GetFontKerningSizeGlyphs() instead, which does what you
- *             probably expected this function to do.
- *
- * \param font the font to query.
- * \param prev_index the font index, NOT codepoint, of the previous character.
- * \param index the font index, NOT codepoint, of the current character.
- * \returns The kerning size between the two specified characters, in pixels, or -1 on error.
- *
- * \since This function is available since SDL_ttf 3.0.0.
- *
- * \sa TTF_GetFontKerningSizeGlyphs
- */
-extern SDL_DEPRECATED DECLSPEC int TTF_GetFontKerningSize(TTF_Font *font, int prev_index, int index);
-
 /**
  * Query the kerning size of two 16-bit glyphs.
  *
diff --git a/src/SDL_ttf.c b/src/SDL_ttf.c
index 4a3fa021..1c7213f3 100644
--- a/src/SDL_ttf.c
+++ b/src/SDL_ttf.c
@@ -4200,17 +4200,6 @@ int TTF_WasInit(void)
     return TTF_initialized;
 }
 
-/* don't use this function. It's just here for binary compatibility. */
-int TTF_GetFontKerningSize(TTF_Font *font, int prev_index, int index)
-{
-    FT_Vector delta;
-
-    TTF_CHECK_POINTER(font, -1);
-
-    FT_Get_Kerning(font->face, (FT_UInt)prev_index, (FT_UInt)index, FT_KERNING_DEFAULT, &delta);
-    return (int)(delta.x >> 6);
-}
-
 int TTF_GetFontKerningSizeGlyphs(TTF_Font *font, Uint16 previous_ch, Uint16 ch)
 {
     return TTF_GetFontKerningSizeGlyphs32(font, previous_ch, ch);
diff --git a/src/SDL_ttf.sym b/src/SDL_ttf.sym
index 7895706c..b013cf0a 100644
--- a/src/SDL_ttf.sym
+++ b/src/SDL_ttf.sym
@@ -12,7 +12,6 @@ SDL3_ttf_0.0.0 {
     TTF_FontLineSkip;
     TTF_GetFontHinting;
     TTF_GetFontKerning;
-    TTF_GetFontKerningSize;
     TTF_GetFontKerningSizeGlyphs;
     TTF_GetFontKerningSizeGlyphs32;
     TTF_GetFontOutline;