Skip to content

Commit

Permalink
Merge pull request #17777 from unoplatform/dev/youssef/kfa-deadcode
Browse files Browse the repository at this point in the history
chore: Remove dead net7.0 code
  • Loading branch information
jeromelaban committed Jul 31, 2024
2 parents 5267e58 + 5df8dc3 commit 29cb4ff
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,7 @@ public void InsertKeyFrame(float normalizedProgressKey, float value, Composition
startValue = (float)compositionObject.GetAnimatableProperty(propertyName.ToString(), subPropertyName.ToString());
}

Func<float, float, float, float> lerp =
#if NET8_0_OR_GREATER
float.Lerp;
#else
(value1, value2, amount) => (value1 * (1.0f - amount)) + (value2 * amount);
#endif

_keyframeEvaluator = new KeyFrameEvaluator<float>(startValue, _keyFrames[1.0f], Duration, _keyFrames, lerp, IterationCount, IterationBehavior, Compositor);
_keyframeEvaluator = new KeyFrameEvaluator<float>(startValue, _keyFrames[1.0f], Duration, _keyFrames, float.Lerp, IterationCount, IterationBehavior, Compositor);
return startValue;
}
#endif
Expand Down

0 comments on commit 29cb4ff

Please sign in to comment.