diff options
Diffstat (limited to 'src/library/scala/xml/dtd/Scanner.scala')
-rw-r--r-- | src/library/scala/xml/dtd/Scanner.scala | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/library/scala/xml/dtd/Scanner.scala b/src/library/scala/xml/dtd/Scanner.scala index abef812422..a877fc0dfe 100644 --- a/src/library/scala/xml/dtd/Scanner.scala +++ b/src/library/scala/xml/dtd/Scanner.scala @@ -50,10 +50,7 @@ class Scanner extends Tokens with parsing.TokenTests { if (c == d) next else error("expected '"+d+"' found '"+c+"' !"); } - final def accS(ds: Seq[Char]) { - val jt = ds.iterator - while (jt.hasNext) { acc(jt.next) } - } + final def accS(ds: Seq[Char]) { ds foreach acc } final def readToken: Int = if (isSpace(c)) { |