D-Programming-Language/phobos — pull request #874 by monarchdodra (2012-10-16 10:35:43+00:00)
Title: remove ctfe check in popFront!NarrowString

This check was not actually needed. Considering that __ctfe is actually evaluated during runtime, this should help boost popFront's performance with narrow strings.

No unit tests added, because there was already one checking ctfe:

```D
version(unittest) C[] _eatString(C)(C[] str)
{
while(!str.empty)
str.popFront();

return str;
}

unittest
{
[...]

static assert(!is(typeof(popFront!(immutable string))));
static assert(!is(typeof(popFront!(char[4]))));

enum checkCTFE = _eatString("ウェブサイト@La_Verité.com");
static assert(checkCTFE.empty);
enum checkCTFEW = _eatString("ウェブサイト@La_Verité.com"w);
static assert(checkCTFEW.empty);
}
```