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

Commit 11e544c

Browse files
committed
remove redundant object.dup(T:void)
1 parent de92ad4 commit 11e544c

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)