File tree Expand file tree Collapse file tree 1 file changed +0
-14
lines changed
Microsoft.Toolkit.HighPerformance/Extensions Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Original file line number Diff line number Diff line change @@ -33,20 +33,6 @@ public static unsafe byte ToByte(this bool flag)
33
33
return * ( byte * ) & copy ;
34
34
}
35
35
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
-
50
36
/// <summary>
51
37
/// Converts the given <see cref="bool"/> value to an <see cref="int"/> mask with
52
38
/// all bits representing the value of the input flag (either 0xFFFFFFFF or 0x00000000).
You can’t perform that action at this time.
0 commit comments