Skip to content

Commit 7c205fe

Browse files
committed
Remove clearreferenceinfo
1 parent ad4fd04 commit 7c205fe

File tree

2 files changed

+0
-16
lines changed

2 files changed

+0
-16
lines changed

Microsoft.Toolkit.Uwp.UI.Animations/Expressions/CompositionExtensions.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,6 @@ public static void StartAnimation(this CompositionObject compObject, string prop
176176
/// <param name="easing">The easing function to use when interpolating between frames.</param>
177177
public static void InsertExpressionKeyFrame(this KeyFrameAnimation keyframeAnimation, float normalizedProgressKey, ExpressionNode expressionNode, CompositionEasingFunction easing = null)
178178
{
179-
expressionNode.ClearReferenceInfo();
180179
keyframeAnimation.InsertExpressionKeyFrame(normalizedProgressKey, expressionNode.ToExpressionString(), easing);
181180

182181
expressionNode.SetAllParameters(keyframeAnimation);
@@ -253,7 +252,6 @@ private static ExpressionAnimation CreateExpressionAnimationFromNode(Compositor
253252
// Only create a new animation if this node hasn't already generated one before, so we don't have to re-parse the expression string.
254253
if (expressionNode.ExpressionAnimation == null)
255254
{
256-
expressionNode.ClearReferenceInfo();
257255
expressionNode.ExpressionAnimation = compositor.CreateExpressionAnimation(expressionNode.ToExpressionString());
258256
}
259257

Microsoft.Toolkit.Uwp.UI.Animations/Expressions/ExpressionNodes/ExpressionNode.cs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -260,20 +260,6 @@ internal string ToExpressionString()
260260
return ToExpressionStringInternal();
261261
}
262262

263-
/// <summary>
264-
/// Clears the reference information.
265-
/// </summary>
266-
/// <exception cref="System.Exception">Reference and paramName can't both be null</exception>
267-
internal void ClearReferenceInfo()
268-
{
269-
_objRefList = null;
270-
ParamName = null;
271-
foreach (var child in Children)
272-
{
273-
child.ClearReferenceInfo();
274-
}
275-
}
276-
277263
/// <summary>
278264
/// Ensures the reference information.
279265
/// </summary>

0 commit comments

Comments
 (0)