Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/mcs
diff options
context:
space:
mode:
authorSebastien Pouliot <sebastien@ximian.com>2004-06-17 22:25:02 +0400
committerSebastien Pouliot <sebastien@ximian.com>2004-06-17 22:25:02 +0400
commitd50232bbb4e5b7005128d54674320a0e02a34c6a (patch)
treee8d8b13bb195330641e676657413835279f863ed /mcs
parent83d87af40ce22ad670d89c41a4cdf9308aa7a2c9 (diff)
2004-06-17 Sebastien Pouliot <sebastien@ximian.com>
* Decimal.cs: Removed unused (and unusable) IsOne and fixed IsZero (where scale has no importance). svn path=/trunk/mcs/; revision=29799
Diffstat (limited to 'mcs')
-rw-r--r--mcs/class/corlib/System/ChangeLog3
-rw-r--r--mcs/class/corlib/System/Decimal.cs8
2 files changed, 3 insertions, 8 deletions
diff --git a/mcs/class/corlib/System/ChangeLog b/mcs/class/corlib/System/ChangeLog
index 5a6605907d9..f23780e00f2 100644
--- a/mcs/class/corlib/System/ChangeLog
+++ b/mcs/class/corlib/System/ChangeLog
@@ -2,7 +2,8 @@
* Decimal.cs: Fixed regression in System.Data caused by the recent
changes. Adapted (and moved) the code to correct the scale from
- SqlMoney.
+ SqlMoney. Removed unused (and unusable) IsOne and fixed IsZero (where
+ scale has no importance).
2004-06-17 Lluis Sanchez Gual <lluis@ximian.com>
diff --git a/mcs/class/corlib/System/Decimal.cs b/mcs/class/corlib/System/Decimal.cs
index ebb9ee4c4a5..3d3e6202157 100644
--- a/mcs/class/corlib/System/Decimal.cs
+++ b/mcs/class/corlib/System/Decimal.cs
@@ -501,13 +501,7 @@ namespace System
// avoid unmanaged call
private bool IsZero ()
{
- return ((ss32 == 0) && (hi32 == 0) && (lo32 == 0) && (mid32 == 0));
- }
-
- // avoid unmanaged call
- private bool IsOne ()
- {
- return ((ss32 == 0x80000000) && (hi32 == 0) && (lo32 == 0) && (mid32 == 0));
+ return ((hi32 == 0) && (lo32 == 0) && (mid32 == 0));
}
// avoid unmanaged call