Remove unused variable
This commit is contained in:
@@ -208,9 +208,7 @@ bool LyraCarouselTheme::tryFastHomeRender(GfxRenderer& renderer, const std::vect
|
|||||||
newKey += '\0';
|
newKey += '\0';
|
||||||
}
|
}
|
||||||
|
|
||||||
bool framesReady = (newKey == gCacheKey && gCachedFrameCount > 0);
|
if (newKey != gCacheKey || gCachedFrameCount == 0) {
|
||||||
|
|
||||||
if (!framesReady) {
|
|
||||||
// Free old cache and allocate fresh frames
|
// Free old cache and allocate fresh frames
|
||||||
freeFrameCache();
|
freeFrameCache();
|
||||||
const int frameCount = std::min(bookCount, kFrameCount);
|
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);
|
renderOneCarouselFrame(renderer, recentBooks, initialIdx, 0, metrics);
|
||||||
gCachedFrameCount = frameCount;
|
gCachedFrameCount = frameCount;
|
||||||
gCacheKey = newKey;
|
gCacheKey = newKey;
|
||||||
framesReady = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const bool inCarouselRow = (selectorIndex < bookCount);
|
const bool inCarouselRow = (selectorIndex < bookCount);
|
||||||
|
|||||||
Reference in New Issue
Block a user