From e3be493d0dd9c6b45775cb7e6f6907df417a1c8c Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Sun, 11 Dec 2022 17:02:21 +0100 Subject: [PATCH] Removed a few unused lambda captures from SystemView. --- es-app/src/views/SystemView.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/es-app/src/views/SystemView.cpp b/es-app/src/views/SystemView.cpp index 05890cf0f..6f4e5fbe6 100644 --- a/es-app/src/views/SystemView.cpp +++ b/es-app/src/views/SystemView.cpp @@ -375,7 +375,7 @@ void SystemView::onCursorChanged(const CursorState& state) if (transitionStyle == "fade") { float startFade {mFadeOpacity}; anim = new LambdaAnimation( - [this, startFade, startPos, endPos, posMax](float t) { + [this, startFade, endPos](float t) { if (t < 0.3f) mFadeOpacity = glm::mix(0.0f, 1.0f, glm::clamp(t / 0.2f + startFade, 0.0f, 1.0f)); @@ -437,9 +437,8 @@ void SystemView::onCursorChanged(const CursorState& state) else { // Instant. updateGameCount(); - anim = - new LambdaAnimation([this, startPos, endPos, posMax](float t) { mCamOffset = endPos; }, - static_cast(animTime)); + anim = new LambdaAnimation([this, endPos](float t) { mCamOffset = endPos; }, + static_cast(animTime)); } setAnimation(anim, 0, nullptr, false, 0);