Skip to content

Commit

Permalink
remove useless CT branch
Browse files Browse the repository at this point in the history
  • Loading branch information
9il committed May 12, 2016
1 parent 80594b0 commit b59ac8c
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 b59ac8c

Please sign in to comment.