Skip to content

Commit

Permalink
Merge pull request #4301 from 9il/all
Browse files Browse the repository at this point in the history
remove useless CT branch
  • Loading branch information
DmitryOlshansky committed May 12, 2016
2 parents 80594b0 + b59ac8c commit e847857
Showing 1 changed file with 0 additions and 11 deletions.
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

0 comments on commit e847857

Please sign in to comment.