Skip to content

Commit 357f8fc

Browse files
committed
Removing constants from the primitives that we aren't exposing
1 parent 370282f commit 357f8fc

File tree

1 file changed

+0
-53
lines changed

1 file changed

+0
-53
lines changed

accepted/2021/statics-in-interfaces/README.md

Lines changed: 0 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1692,12 +1692,8 @@ namespace System
16921692
IMinMaxValue<byte>,
16931693
IUnsignedNumber<byte>
16941694
{
1695-
public const byte AdditiveIdentity = 0; // ? Expose
16961695
public const byte MaxValue = 255; // Existing
16971696
public const byte MinValue = 0; // Existing
1698-
public const byte MultiplicativeIdentity = 1; // ? Expose
1699-
public const byte One = 1; // ? Expose
1700-
public const byte Zero = 0; // ? Expose
17011697
17021698
// Explicitly implemented interfaces
17031699
// * IAdditiveIdentity
@@ -1843,12 +1839,8 @@ namespace System
18431839
IMinMaxValue<char>,
18441840
IUnsignedNumber<char>
18451841
{
1846-
public const short AdditiveIdentity = 0; // ? Expose
18471842
public const short MaxValue = 65535; // Existing
18481843
public const short MinValue = 0; // Existing
1849-
public const short MultiplicativeIdentity = 1; // ? Expose
1850-
public const short One = 1; // ? Expose
1851-
public const short Zero = 0; // ? Expose
18521844
18531845
// Explicitly implemented interfaces
18541846
// * IAdditiveIdentity
@@ -2148,12 +2140,9 @@ namespace System
21482140
21492141
// Decimal exposes a member named MinusOne
21502142
2151-
public const decimal AdditiveIdentity = 0; // ? Expose
21522143
public const decimal MaxValue = 79228162514264337593543950335m; // Existing
21532144
public const decimal MinusOne = -1; // Existing - "Conflicts" with NegativeOne
21542145
public const decimal MinValue = -79228162514264337593543950335m; // Existing
2155-
public const decimal MultiplicativeIdentity = 1; // ? Expose
2156-
public const decimal NegativeOne = -1; // ? Expose
21572146
public const decimal One = 1; // Existing
21582147
public const decimal Zero = 0; // Existing
21592148
@@ -2297,17 +2286,12 @@ namespace System
22972286
IConvertible,
22982287
IMinMaxValue<double>
22992288
{
2300-
public const double AdditiveIdentity = 0; // ? Expose
23012289
public const double E = Math.E;
23022290
public const double MaxValue = 1.7976931348623157E+308; // Existing
23032291
public const double MinValue = -1.7976931348623157E+308; // Existing
2304-
public const double MultiplicativeIdentity = 1; // ? Expose
2305-
public const double NegativeOne = -1; // ? Expose
23062292
public const double NegativeZero = -0.0;
2307-
public const double One = 1; // ? Expose
23082293
public const double Pi = Math.PI;
23092294
public const double Tau = Math.Tau;
2310-
public const double Zero = 0; // ? Expose
23112295

23122296
// Explicitly implemented interfaces
23132297
// * IAdditiveIdentity
@@ -2773,13 +2757,8 @@ namespace System
27732757
IMinMaxValue<short>,
27742758
ISignedNumber<short>
27752759
{
2776-
public const short AdditiveIdentity = 0; // ? Expose
27772760
public const short MaxValue = 32767; // Existing
27782761
public const short MinValue = -32768; // Existing
2779-
public const short MultiplicativeIdentity = 1; // ? Expose
2780-
public const short NegativeOne = -1; // ? Expose
2781-
public const short One = 1; // ? Expose
2782-
public const short Zero = 0; // ? Expose
27832762
27842763
// Explicitly implemented interfaces
27852764
// * IAdditiveIdentity
@@ -2926,13 +2905,8 @@ namespace System
29262905
IMinMaxValue<int>,
29272906
ISignedNumber<int>
29282907
{
2929-
public const int AdditiveIdentity = 0; // ? Expose
29302908
public const int MaxValue = 2147483647; // Existing
29312909
public const int MinValue = -2147483648; // Existing
2932-
public const int MultiplicativeIdentity = 1; // ? Expose
2933-
public const int NegativeOne = -1; // ? Expose
2934-
public const int One = 1; // ? Expose
2935-
public const int Zero = 0; // ? Expose
29362910
29372911
// Explicitly implemented interfaces
29382912
// * IAdditiveIdentity
@@ -3080,13 +3054,8 @@ namespace System
30803054
IMinMaxValue<long>,
30813055
ISignedNumber<long>
30823056
{
3083-
public const long AdditiveIdentity = 0; // ? Expose
30843057
public const long MaxValue = 9223372036854775807; // Existing
30853058
public const long MinValue = -9223372036854775808; // Existing
3086-
public const long MultiplicativeIdentity = 1; // ? Expose
3087-
public const long NegativeOne = -1; // ? Expose
3088-
public const long One = 1; // ? Expose
3089-
public const long Zero = 0; // ? Expose
30903059
30913060
// Explicitly implemented interfaces
30923061
// * IAdditiveIdentity
@@ -3529,13 +3498,8 @@ namespace System
35293498
IMinMaxValue<sbyte>,
35303499
ISignedNumber<sbyte>
35313500
{
3532-
public const sbyte AdditiveIdentity = 0; // ? Expose
35333501
public const sbyte MaxValue = 127; // Existing
35343502
public const sbyte MinValue = -128; // Existing
3535-
public const sbyte MultiplicativeIdentity = 1; // ? Expose
3536-
public const sbyte NegativeOne = -1; // ? Expose
3537-
public const sbyte One = 1; // ? Expose
3538-
public const sbyte Zero = 0; // ? Expose
35393503
35403504
// Explicitly implemented interfaces
35413505
// * IAdditiveIdentity
@@ -3682,17 +3646,12 @@ namespace System
36823646
IConvertible,
36833647
IMinMaxValue<float>
36843648
{
3685-
public const float AdditiveIdentity = 0; // ? Expose
36863649
public const float E = MathF.E;
36873650
public const float MaxValue = 3.40282346638528859e+38f; // Existing
36883651
public const float MinValue = -3.40282346638528859e+38f; // Existing
3689-
public const float MultiplicativeIdentity = 1; // ? Expose
3690-
public const float NegativeOne = -1; // ? Expose
36913652
public const float NegativeZero = -0.0f;
3692-
public const float One = 1; // ? Expose
36933653
public const float Pi = Math.PI;
36943654
public const float Tau = Math.Tau;
3695-
public const float Zero = 0; // ? Expose
36963655

36973656
// Explicitly implemented interfaces
36983657
// * IAdditiveIdentity
@@ -4013,12 +3972,8 @@ namespace System
40133972
IMinMaxValue<ushort>,
40143973
IUnsignedNumber<ushort>
40153974
{
4016-
public const short AdditiveIdentity = 0; // ? Expose
40173975
public const short MaxValue = 65535; // Existing
40183976
public const short MinValue = 0; // Existing
4019-
public const short MultiplicativeIdentity = 1; // ? Expose
4020-
public const short One = 1; // ? Expose
4021-
public const short Zero = 0; // ? Expose
40223977
40233978
// Explicitly implemented interfaces
40243979
// * IAdditiveIdentity
@@ -4164,12 +4119,8 @@ namespace System
41644119
IMinMaxValue<uint>,
41654120
IUnsignedNumber<uint>
41664121
{
4167-
public const uint AdditiveIdentity = 0; // ? Expose
41684122
public const uint MaxValue = 4294967295; // Existing
41694123
public const uint MinValue = 0; // Existing
4170-
public const uint MultiplicativeIdentity = 1; // ? Expose
4171-
public const uint One = 1; // ? Expose
4172-
public const uint Zero = 0; // ? Expose
41734124
41744125
// Explicitly implemented interfaces
41754126
// * IAdditiveIdentity
@@ -4315,12 +4266,8 @@ namespace System
43154266
IMinMaxValue<ulong>,
43164267
IUnsignedNumber<ulong>
43174268
{
4318-
public const ulong AdditiveIdentity = 0; // ? Expose
43194269
public const ulong MaxValue = 18446744073709551615; // Existing
43204270
public const ulong MinValue = 0; // Existing
4321-
public const ulong MultiplicativeIdentity = 1; // ? Expose
4322-
public const ulong One = 1; // ? Expose
4323-
public const ulong Zero = 0; // ? Expose
43244271
43254272
// Explicitly implemented interfaces
43264273
// * IAdditiveIdentity

0 commit comments

Comments
 (0)