Remove deprecated functionality

This commit is contained in:
2020-05-06 07:08:14 +02:00
parent 3ce5e8153c
commit a227b58407
7 changed files with 7 additions and 90 deletions

View File

@ -630,13 +630,7 @@ template isRandomAccessRange(R)
*/
void put(R, E)(ref R range, auto ref E e)
{
static if (__traits(hasMember, R, "put")
&& is(typeof((R r, E e) => r.put(e))))
{
pragma(msg, "OutputRange.put()-primitive is deprecated. Define opCall() instead.");
range.put(e);
}
else static if (is(typeof((R r, E e) => r(e))))
static if (is(typeof((R r, E e) => r(e))))
{
range(e);
}