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

Commit a66f9fa

Browse files
authored
Merge pull request #2056 from wilzbach/pointless-version
Remove pointless version(unittest)
2 parents 9bdbdbc + 8efb219 commit a66f9fa

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/object.d

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2895,7 +2895,7 @@ void destroy(T)(T obj) if (is(T == interface))
28952895
destroy(cast(Object)obj);
28962896
}
28972897

2898-
version(unittest) unittest
2898+
unittest
28992899
{
29002900
interface I { }
29012901
{
@@ -2964,7 +2964,7 @@ void destroy(T)(ref T obj) if (is(T == struct))
29642964
} ();
29652965
}
29662966

2967-
version(unittest) nothrow @safe @nogc unittest
2967+
nothrow @safe @nogc unittest
29682968
{
29692969
{
29702970
struct A { string s = "A"; }
@@ -3010,7 +3010,7 @@ void destroy(T : U[n], U, size_t n)(ref T obj) if (!is(T == struct))
30103010
destroy(e);
30113011
}
30123012

3013-
version(unittest) unittest
3013+
unittest
30143014
{
30153015
int[2] a;
30163016
a[0] = 1;
@@ -3084,7 +3084,7 @@ template _isStaticArray(T)
30843084
enum bool _isStaticArray = false;
30853085
}
30863086

3087-
version(unittest) unittest
3087+
unittest
30883088
{
30893089
{
30903090
int a = 42;

0 commit comments

Comments
 (0)