You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by nw...@apache.org on 2015/07/11 14:52:41 UTC
[07/12] lucy-clownfish git commit: Remove Float64_To_F64 and
Int64_To_I64
Remove Float64_To_F64 and Int64_To_I64
Project: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/commit/82df9f0c
Tree: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/tree/82df9f0c
Diff: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/diff/82df9f0c
Branch: refs/heads/master
Commit: 82df9f0c678ad6878fbfdb0b2544abf11fbd39bf
Parents: d845e95
Author: Nick Wellnhofer <we...@aevum.de>
Authored: Thu Jul 9 15:57:39 2015 +0200
Committer: Nick Wellnhofer <we...@aevum.de>
Committed: Thu Jul 9 16:34:00 2015 +0200
----------------------------------------------------------------------
runtime/core/Clownfish/Num.c | 10 ----------
runtime/core/Clownfish/Num.cfh | 6 ------
runtime/core/Clownfish/Test/TestNum.c | 6 +-----
3 files changed, 1 insertion(+), 21 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/82df9f0c/runtime/core/Clownfish/Num.c
----------------------------------------------------------------------
diff --git a/runtime/core/Clownfish/Num.c b/runtime/core/Clownfish/Num.c
index 3dad95d..d05b66e 100644
--- a/runtime/core/Clownfish/Num.c
+++ b/runtime/core/Clownfish/Num.c
@@ -108,11 +108,6 @@ Float64_Set_Value_IMP(Float64 *self, double value) {
self->value = value;
}
-double
-Float64_To_F64_IMP(Float64 *self) {
- return self->value;
-}
-
int64_t
Float64_To_I64_IMP(Float64 *self) {
if (self->value < -POW_2_63 || self->value >= POW_2_63) {
@@ -202,11 +197,6 @@ Int64_To_F64_IMP(Integer64 *self) {
return (double)self->value;
}
-int64_t
-Int64_To_I64_IMP(Integer64 *self) {
- return self->value;
-}
-
bool
Int64_To_Bool_IMP(Integer64 *self) {
return self->value != 0;
http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/82df9f0c/runtime/core/Clownfish/Num.cfh
----------------------------------------------------------------------
diff --git a/runtime/core/Clownfish/Num.cfh b/runtime/core/Clownfish/Num.cfh
index 0b4b368..fc0e91b 100644
--- a/runtime/core/Clownfish/Num.cfh
+++ b/runtime/core/Clownfish/Num.cfh
@@ -43,9 +43,6 @@ final class Clownfish::Float64 {
public int64_t
To_I64(Float64 *self);
- public double
- To_F64(Float64 *self);
-
/** Evaluate the number in a boolean context. Returns true if it is
* non-zero.
*/
@@ -93,9 +90,6 @@ final class Clownfish::Integer64 nickname Int64 {
int64_t
Get_Value(Integer64 *self);
- public int64_t
- To_I64(Integer64 *self);
-
public double
To_F64(Integer64 *self);
http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/82df9f0c/runtime/core/Clownfish/Test/TestNum.c
----------------------------------------------------------------------
diff --git a/runtime/core/Clownfish/Test/TestNum.c b/runtime/core/Clownfish/Test/TestNum.c
index 8947d2e..d2a3938 100644
--- a/runtime/core/Clownfish/Test/TestNum.c
+++ b/runtime/core/Clownfish/Test/TestNum.c
@@ -67,10 +67,6 @@ test_accessors(TestBatchRunner *runner) {
TEST_TRUE(runner, Float64_To_I64(f64) == 1, "Float64_To_I64");
- got64 = Float64_To_F64(f64);
- TEST_TRUE(runner, *(int64_t*)&got64 == *(int64_t*)&wanted64,
- "Float64_To_F64");
-
Int64_Set_Value(i64, INT64_MIN);
TEST_TRUE(runner, Int64_Get_Value(i64) == INT64_MIN,
"I64 Set_Value Get_Value");
@@ -206,7 +202,7 @@ test_Mimic(TestBatchRunner *runner) {
void
TestNum_Run_IMP(TestNum *self, TestBatchRunner *runner) {
- TestBatchRunner_Plan(runner, (TestBatch*)self, 60);
+ TestBatchRunner_Plan(runner, (TestBatch*)self, 59);
test_To_String(runner);
test_accessors(runner);
test_Equals_and_Compare_To(runner);