diff --git a/TFT_eSPI.cpp b/TFT_eSPI.cpp index b1e586f..7ce03c4 100644 --- a/TFT_eSPI.cpp +++ b/TFT_eSPI.cpp @@ -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 diff --git a/TFT_eSPI.h b/TFT_eSPI.h index b55e912..0aecdd0 100644 --- a/TFT_eSPI.h +++ b/TFT_eSPI.h @@ -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