From d87aa7a845ef16130d1809bae1018670680164a9 Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Thu, 1 Feb 2018 13:46:56 +0100 Subject: [PATCH] Remove unused static functions --- src/openrct2/drawing/TTFSDLPort.cpp | 46 ----------------------------- 1 file changed, 46 deletions(-) diff --git a/src/openrct2/drawing/TTFSDLPort.cpp b/src/openrct2/drawing/TTFSDLPort.cpp index 2bdad7fea4..60ddf0dfde 100644 --- a/src/openrct2/drawing/TTFSDLPort.cpp +++ b/src/openrct2/drawing/TTFSDLPort.cpp @@ -168,16 +168,6 @@ static int TTF_underline_top_row(TTF_Font *font) return font->ascent - font->underline_offset - 1; } -/* Gets the top row of the underline. for a given glyph. The outline -is taken into account. -Need to update row according to height difference between font and glyph: -font_value - font->ascent + glyph->maxy -*/ -static int TTF_Glyph_underline_top_row(TTF_Font *font, c_glyph *glyph) -{ - return glyph->maxy - font->underline_offset - 1; -} - /* Gets the bottom row of the underline. The outline is taken into account. */ @@ -192,16 +182,6 @@ static int TTF_underline_bottom_row(TTF_Font *font) return row; } -/* Gets the bottom row of the underline. for a given glyph. The outline -is taken into account. -Need to update row according to height difference between font and glyph: -font_value - font->ascent + glyph->maxy -*/ -static int TTF_Glyph_underline_bottom_row(TTF_Font *font, c_glyph *glyph) -{ - return TTF_underline_bottom_row(font) - font->ascent + glyph->maxy; -} - /* Gets the top row of the strikethrough. The outline is taken into account. */ @@ -212,16 +192,6 @@ static int TTF_strikethrough_top_row(TTF_Font *font) return font->height / 2; } -/* Gets the top row of the strikethrough for a given glyph. The outline -is taken into account. -Need to update row according to height difference between font and glyph: -font_value - font->ascent + glyph->maxy -*/ -static int TTF_Glyph_strikethrough_top_row(TTF_Font *font, c_glyph *glyph) -{ - return TTF_strikethrough_top_row(font) - font->ascent + glyph->maxy; -} - static void TTF_initLineMectrics(const TTF_Font *font, const TTFSurface *textbuf, const int row, uint8 **pdst, int *pheight) { uint8 *dst; @@ -528,11 +498,6 @@ static TTF_Font* TTF_OpenFontIndexRW(FILE *src, int freesrc, int ptsize, long in return font; } -static TTF_Font* TTF_OpenFontRW(FILE *src, int freesrc, int ptsize) -{ - return TTF_OpenFontIndexRW(src, freesrc, ptsize, 0); -} - static TTF_Font* TTF_OpenFontIndex(const char *file, int ptsize, long index) { FILE *rw = fopen(file, "rb"); @@ -1422,17 +1387,6 @@ TTFSurface *TTF_RenderUTF8_Shaded(TTF_Font *font, return textbuf; } -static bool CharacterIsDelimiter(char c, const char *delimiters) -{ - while (*delimiters) { - if (c == *delimiters) { - return true; - } - ++delimiters; - } - return false; -} - void TTF_SetFontHinting(TTF_Font* font, int hinting) { if (hinting == TTF_HINTING_LIGHT)