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

Commit

Permalink
Merge pull request #1642 from WalterBright/rm-void-dup
Browse files Browse the repository at this point in the history
remove redundant object.dup(T:void)
  • Loading branch information
andralex committed Sep 2, 2016
2 parents de92ad4 + 11e544c commit 96329ee
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/object.d
Expand Up @@ -3323,12 +3323,6 @@ unittest
return _dup!(const(T), T)(a);
}

/// ditto
@property T[] dup(T:void)(scope const(T)[] a) @trusted
{
import core.internal.traits : Unconst;
return _dup!(const(T), Unconst!T)(a);
}

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

0 comments on commit 96329ee

Please sign in to comment.