Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Commit 986dbb3

Browse files
committed
Remove private isnan function with only one caller
1 parent 25559f5 commit 986dbb3

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/object.d

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -927,7 +927,7 @@ nothrow @safe @nogc unittest
927927
destroy!false(a);
928928
assert(a == 42);
929929
destroy(a);
930-
assert(isnan(a));
930+
assert(a != a); // isnan
931931
}
932932
}
933933

@@ -3632,14 +3632,6 @@ unittest
36323632
assert(postblitRecurseOrder == order);
36333633
}
36343634

3635-
version (unittest)
3636-
{
3637-
private bool isnan(float x)
3638-
{
3639-
return x != x;
3640-
}
3641-
}
3642-
36433635
private
36443636
{
36453637
extern (C) void _d_arrayshrinkfit(const TypeInfo ti, void[] arr) nothrow;

0 commit comments

Comments
 (0)