Skip to content

Commit 56eaf64

Browse files
committed
Removed .NET 10 conditional on C#14 extensions for Color
1 parent b4c7be0 commit 56eaf64

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

components/Helpers/src/ColorHelper/ColorExtensions.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
// The .NET Foundation licenses this file to you under the MIT license.
33
// See the LICENSE file in the project root for more information.
44

5-
using Microsoft.UI;
6-
using System.Globalization;
75
using Windows.UI;
86

97
namespace CommunityToolkit.WinUI.Helpers;
@@ -135,8 +133,6 @@ private static Color MixColors(Color color1, Color color2, double factor)
135133
return Color.FromArgb(a, r, g, b);
136134
}
137135

138-
#if NET10_0_OR_GREATER
139-
140136
extension(Color _)
141137
{
142138
/// <inheritdoc cref="ColorHelper.TryParseColor(string, out Color)"/>
@@ -259,6 +255,4 @@ public static Color Subtract(Color color1, Color color2)
259255
/// <inheritdoc cref="Subtract(Color, Color)"/>
260256
public static Color operator -(Color color1, Color color2) => Subtract(color1, color2);
261257
}
262-
263-
#endif
264258
}

0 commit comments

Comments
 (0)