summaryrefslogtreecommitdiff
path: root/src/helpers/AnimatedVariable.cpp
diff options
context:
space:
mode:
authorIkalco <73481042+ikalco@users.noreply.github.com>2024-12-17 10:31:27 -0600
committerGitHub <noreply@github.com>2024-12-17 17:31:27 +0100
commite2c78c00e50a0835c3830c8a0cd82049dc5700b8 (patch)
tree7ac17c752f1569e60a63e5356e199de6968cbb0e /src/helpers/AnimatedVariable.cpp
parentbd7092a9feb39275a9eb1426046a46671e0fe580 (diff)
internal: remove dead code (#8748)
Diffstat (limited to 'src/helpers/AnimatedVariable.cpp')
-rw-r--r--src/helpers/AnimatedVariable.cpp5
1 files changed, 0 insertions, 5 deletions
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::milliseconds>(std::chrono::steady_clock::now() - animationBegin).count(), 0);
-}
-
float CBaseAnimatedVariable::getPercent() {
const auto DURATIONPASSED = std::chrono::duration_cast<std::chrono::milliseconds>(std::chrono::steady_clock::now() - animationBegin).count();
return std::clamp((DURATIONPASSED / 100.f) / m_pConfig->pValues->internalSpeed, 0.f, 1.f);