Showing with 0 additions and 11 deletions.
  1. +0 −11 std/algorithm/searching.d
11 changes: 0 additions & 11 deletions std/algorithm/searching.d
Original file line number Diff line number Diff line change
Expand Up @@ -1647,17 +1647,6 @@ if (isInputRange!InputRange)
}
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
{
//standard range
Expand Down