1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-26 00:04:43 +01:00

Remove unused static functions

This commit is contained in:
Gymnasiast
2018-02-01 13:46:56 +01:00
committed by Michael Steenbeek
parent 58c03bae98
commit d87aa7a845

View File

@@ -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)