From 415aadc6e09ca1c7983c8f7667ad70ed0d8d7b0b Mon Sep 17 00:00:00 2001 From: Frank <91616163+softhack007@users.noreply.github.com> Date: Fri, 21 Nov 2025 00:10:33 +0100 Subject: [PATCH] removing dead code --- wled00/FX_2Dfcn.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/wled00/FX_2Dfcn.cpp b/wled00/FX_2Dfcn.cpp index 8cdd1b6c..3bb6dd51 100644 --- a/wled00/FX_2Dfcn.cpp +++ b/wled00/FX_2Dfcn.cpp @@ -921,11 +921,9 @@ void Segment::drawText(const unsigned char* text, size_t maxLen, int maxLetters, void Segment::drawCharacter(unsigned char chr, int16_t x, int16_t y, uint8_t w, uint8_t h, uint32_t color, uint32_t col2, bool drawShadow) { if (!isActive()) return; // not active #if !defined(WLED_ENABLE_FULL_FONTS) - constexpr int space = 0; // font index of " " (space) if (chr < 32 || chr > 126) return; // legacy mode - only ASCII 32-126 supported chr -= 32; // align with font table entries #else - constexpr int space = 31; // font index of " " // ToDO: clamp to actual font limits if (chr < 1 || chr > 254) return; // sanity check // ToDO needs improvements chr = chr -1; // all fonts start at 1 // ToDO needs improvements