Skip to content

Commit 691a753

Browse files
committed
Removed leftover deprecated extensions
1 parent ef787e9 commit 691a753

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

Microsoft.Toolkit.HighPerformance/Extensions/BoolExtensions.cs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -33,20 +33,6 @@ public static unsafe byte ToByte(this bool flag)
3333
return *(byte*)©
3434
}
3535

36-
/// <summary>
37-
/// Converts the given <see cref="bool"/> value into an <see cref="int"/>.
38-
/// </summary>
39-
/// <param name="flag">The input value to convert.</param>
40-
/// <returns>1 if <paramref name="flag"/> is <see langword="true"/>, 0 otherwise.</returns>
41-
/// <remarks>This method does not contain branching instructions.</remarks>
42-
[Pure]
43-
[MethodImpl(MethodImplOptions.AggressiveInlining)]
44-
[Obsolete("Use ToByte instead.")]
45-
public static unsafe int ToInt(this bool flag)
46-
{
47-
return *(byte*)&flag;
48-
}
49-
5036
/// <summary>
5137
/// Converts the given <see cref="bool"/> value to an <see cref="int"/> mask with
5238
/// all bits representing the value of the input flag (either 0xFFFFFFFF or 0x00000000).

0 commit comments

Comments
 (0)