src/Pure/PIDE/command.scala
changeset 83288 35d9caa2f42d
parent 83226 37b61794a93a
child 83294 8d30612cff2d
--- a/src/Pure/PIDE/command.scala	Wed Oct 15 21:53:16 2025 +0200
+++ b/src/Pure/PIDE/command.scala	Wed Oct 15 22:30:07 2025 +0200
@@ -250,18 +250,15 @@
       new Command(id, command.node_name, command.blobs_info, command.span, command.source,
         results, exports, markups, document_status)
 
-    private def add_status(st: Markup): State = {
-      val document_status1 = document_status.update(markups = List(st))
-      new State(command, results, exports, markups, document_status1)
-    }
+    private def add_status(st: Markup): State =
+      new State(command, results, exports, markups,
+        document_status.update(markups = List(st)))
 
-    private def add_result(entry: Results.Entry): State = {
-      val document_status1 =
+    private def add_result(entry: Results.Entry): State =
+      new State(command, results + entry, exports, markups,
         document_status.update(
           warned = Results.warned(entry),
-          failed = Results.failed(entry))
-      new State(command, results + entry, exports, markups, document_status1)
-    }
+          failed = Results.failed(entry)))
 
     def add_export(entry: Exports.Entry): Option[State] =
       if (command.node_name.theory == entry._2.theory_name) {
@@ -289,7 +286,7 @@
         message: XML.Elem,
         cache: XML.Cache): State =
       message match {
-        case XML.Elem(markup @ Markup(Markup.TIMING, _), _) => add_status(markup)
+        case XML.Elem(markup@Markup(Markup.TIMING, _), _) => add_status(markup)
 
         case XML.Elem(Markup(Markup.STATUS, _), msgs) =>
           if (command.span.is_theory) this