Skip to content

Commit a533078

Browse files
committed
Revert "Implement Decimal.Truncate"
This reverts commit 63a5b2a.
1 parent 50f27c4 commit a533078

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

src/NHibernate.Test/NHSpecificTest/GH0831/FixtureByCode.cs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -135,18 +135,6 @@ public void CanHandleFloor()
135135
CanSelect(e => decimal.Floor(e.EntityValue));
136136
});
137137
}
138-
139-
[Test]
140-
public void CanHandleTruncate()
141-
{
142-
AssumeFunctionSupported("truncate");
143-
144-
Assert.Multiple(() =>
145-
{
146-
CanFilter(e => decimal.Truncate(e.EntityValue) > 1.0m);
147-
CanSelect(e => decimal.Truncate(e.EntityValue));
148-
});
149-
}
150138

151139
[Test]
152140
public void CanHandleMultiply()

src/NHibernate/Linq/Functions/MathGenerator.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ public MathGenerator()
5555

5656
ReflectHelper.GetMethodDefinition(() => Math.Truncate(default(decimal))),
5757
ReflectHelper.GetMethodDefinition(() => Math.Truncate(default(double))),
58-
ReflectHelper.GetMethodDefinition(() => decimal.Truncate(default(decimal))),
5958

6059
ReflectHelper.GetMethodDefinition(() => Math.Pow(default(double), default(double))),
6160
};

0 commit comments

Comments
 (0)