src/Pure/PIDE/command.scala
changeset 56301 1da7b4c33db9
parent 56299 8201790fdeb9
child 56335 8953d4cc060a
--- a/src/Pure/PIDE/command.scala	Thu Mar 27 11:19:31 2014 +0100
+++ b/src/Pure/PIDE/command.scala	Thu Mar 27 12:11:32 2014 +0100
@@ -81,11 +81,6 @@
     def add(index: Markup_Index, markup: Text.Markup): Markups =
       new Markups(rep + (index -> (this(index) + markup)))
 
-    def ++ (other: Markups): Markups =
-      new Markups(
-        (rep.keySet ++ other.rep.keySet)
-          .map(index => index -> (this(index) ++ other(index))).toMap)
-
     override def hashCode: Int = rep.hashCode
     override def equals(that: Any): Boolean =
       that match {
@@ -103,8 +98,9 @@
     def merge_results(states: List[State]): Command.Results =
       Results.merge(states.map(_.results))
 
-    def merge_markup(states: List[State], index: Markup_Index): Markup_Tree =
-      Markup_Tree.merge(states.map(_.markup(index)))
+    def merge_markup(states: List[State], index: Markup_Index,
+        range: Text.Range, elements: Document.Elements): Markup_Tree =
+      Markup_Tree.merge(states.map(_.markup(index)), range, elements)
   }
 
   sealed case class State(
@@ -203,13 +199,6 @@
               this
           }
     }
-
-    def ++ (other: State): State =
-      copy(
-        status = other.status ::: status,
-        results = results ++ other.results,
-        markups = markups ++ other.markups
-      )
   }