From fe96dfa7a55c11896d2edbee9d291d36ce0b7908 Mon Sep 17 00:00:00 2001 From: jpirnay Date: Sat, 9 May 2026 00:04:38 +0200 Subject: [PATCH] Remove unused variable --- src/components/themes/lyra/LyraCarouselTheme.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/components/themes/lyra/LyraCarouselTheme.cpp b/src/components/themes/lyra/LyraCarouselTheme.cpp index 19fcc901..771142b0 100644 --- a/src/components/themes/lyra/LyraCarouselTheme.cpp +++ b/src/components/themes/lyra/LyraCarouselTheme.cpp @@ -208,9 +208,7 @@ bool LyraCarouselTheme::tryFastHomeRender(GfxRenderer& renderer, const std::vect newKey += '\0'; } - bool framesReady = (newKey == gCacheKey && gCachedFrameCount > 0); - - if (!framesReady) { + if (newKey != gCacheKey || gCachedFrameCount == 0) { // Free old cache and allocate fresh frames freeFrameCache(); const int frameCount = std::min(bookCount, kFrameCount); @@ -227,7 +225,6 @@ bool LyraCarouselTheme::tryFastHomeRender(GfxRenderer& renderer, const std::vect renderOneCarouselFrame(renderer, recentBooks, initialIdx, 0, metrics); gCachedFrameCount = frameCount; gCacheKey = newKey; - framesReady = true; } const bool inCarouselRow = (selectorIndex < bookCount);