Remove left over function

This commit is contained in:
CommanderRedYT
2022-12-25 14:09:58 +01:00
parent 0fc74055a2
commit 499a38ccea
2 changed files with 0 additions and 27 deletions

View File

@@ -4397,32 +4397,8 @@ void TFT_eSPI::setFreeFont(const GFXfont *f)
}
}
#else
/***************************************************************************************
** Function name: setFreeFont
** Descriptions: Sets the GFX free font to use
***************************************************************************************/
// Alternative to setTextFont() so we don't need two different named functions
void TFT_eSPI::setFreeFont(uint8_t font)
{
setTextFont(font);
}
/***************************************************************************************
** Function name: setTextFont
** Description: Set the font for the print stream
***************************************************************************************/
void TFT_eSPI::setTextFont(uint8_t f)
{
textfont = (f > 0) ? f : 1; // Don't allow font 0
}
#endif
/***************************************************************************************
** Function name: getSPIinstance
** Description: Get the instance of the SPI class

View File

@@ -566,9 +566,6 @@ class TFT_eSPI {
#ifdef LOAD_GFXFF
void setFreeFont(const GFXfont *f = NULL); // Select the GFX Free Font
#else
void setFreeFont(uint8_t font), // Not used, historical fix to prevent an error
setTextFont(uint8_t font); // Set the font number to use in future
#endif
int16_t textWidth(std::string_view string, uint8_t font); // Returns pixel width of string in specified font