From e2c78c00e50a0835c3830c8a0cd82049dc5700b8 Mon Sep 17 00:00:00 2001 From: Ikalco <73481042+ikalco@users.noreply.github.com> Date: Tue, 17 Dec 2024 10:31:27 -0600 Subject: internal: remove dead code (#8748) --- src/helpers/AnimatedVariable.cpp | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/helpers/AnimatedVariable.cpp') diff --git a/src/helpers/AnimatedVariable.cpp b/src/helpers/AnimatedVariable.cpp index 6deeff39..ab5643a6 100644 --- a/src/helpers/AnimatedVariable.cpp +++ b/src/helpers/AnimatedVariable.cpp @@ -55,11 +55,6 @@ void CBaseAnimatedVariable::registerVar() { m_bIsRegistered = true; } -int CBaseAnimatedVariable::getDurationLeftMs() { - return std::max( - (int)(m_pConfig->pValues->internalSpeed * 100) - (int)std::chrono::duration_cast(std::chrono::steady_clock::now() - animationBegin).count(), 0); -} - float CBaseAnimatedVariable::getPercent() { const auto DURATIONPASSED = std::chrono::duration_cast(std::chrono::steady_clock::now() - animationBegin).count(); return std::clamp((DURATIONPASSED / 100.f) / m_pConfig->pValues->internalSpeed, 0.f, 1.f); -- cgit v1.2.3