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

Commit 96329ee

Browse files
authored
Merge pull request #1642 from WalterBright/rm-void-dup
remove redundant object.dup(T:void)
2 parents de92ad4 + 11e544c commit 96329ee

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/object.d

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3323,12 +3323,6 @@ unittest
33233323
return _dup!(const(T), T)(a);
33243324
}
33253325

3326-
/// ditto
3327-
@property T[] dup(T:void)(scope const(T)[] a) @trusted
3328-
{
3329-
import core.internal.traits : Unconst;
3330-
return _dup!(const(T), Unconst!T)(a);
3331-
}
33323326

33333327
/// Provide the .idup array property.
33343328
@property immutable(T)[] idup(T)(scope T[] a)

0 commit comments

Comments
 (0)