mirror of
https://github.com/dlang/phobos.git
synced 2025-05-07 03:27:03 +03:00
remove useless CT branch
This commit is contained in:
parent
80594b0b61
commit
b59ac8c2a8
1 changed files with 0 additions and 11 deletions
|
@ -1647,17 +1647,6 @@ if (isInputRange!InputRange)
|
||||||
}
|
}
|
||||||
return haystack[$ .. $];
|
return haystack[$ .. $];
|
||||||
}
|
}
|
||||||
else static if (!isInfinite!R && hasSlicing!R && is(typeof(haystack[cast(size_t)0 .. $])))
|
|
||||||
{
|
|
||||||
size_t i = 0;
|
|
||||||
for (auto h = haystack.save; !h.empty; h.popFront())
|
|
||||||
{
|
|
||||||
if (predFun(h.front))
|
|
||||||
return haystack[i .. $];
|
|
||||||
++i;
|
|
||||||
}
|
|
||||||
return haystack[$ .. $];
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
//standard range
|
//standard range
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue