src/Pure/PIDE/line.scala
changeset 64614 88211daacf93
parent 64611 d72d63d05bdb
child 64615 fd0d6de380c6
--- a/src/Pure/PIDE/line.scala	Tue Dec 20 10:01:53 2016 +0100
+++ b/src/Pure/PIDE/line.scala	Tue Dec 20 10:06:18 2016 +0100
@@ -44,9 +44,6 @@
     def advance(text: String): Position =
       if (text.isEmpty) this else advance[Char](text.iterator, _ == '\n')
 
-    def advance_symbols(text: String): Position =
-      if (text.isEmpty) this else advance[Symbol.Symbol](Symbol.iterator(text), Symbol.is_newline _)
-
     def advance_codepoints(text: String): Position =
       if (text.isEmpty) this else advance[Int](Codepoint.iterator(text), _ == 10)
   }
@@ -107,10 +104,9 @@
     }
 
     def position(i: Text.Offset): Position = position(_.advance(_), i)
-    def position_symbols(i: Text.Offset): Position = position(_.advance_symbols(_), i)
     def position_codepoints(i: Text.Offset): Position = position(_.advance_codepoints(_), i)
 
-    // FIXME symbols, codepoints
+    // FIXME codepoints
     def offset(pos: Position): Option[Text.Offset] =
     {
       val l = pos.line
@@ -136,7 +132,6 @@
 {
   require(text.forall(c => c != '\r' && c != '\n'))
 
-  lazy val length_symbols: Int = Symbol.iterator(text).length
   lazy val length_codepoints: Int = Codepoint.iterator(text).length
 
   override def equals(that: Any): Boolean =