src/Pure/PIDE/document_status.scala
changeset 73359 d8a0e996614b
parent 73344 f5c147654661
child 74756 a6c7a257b713
--- a/src/Pure/PIDE/document_status.scala	Wed Mar 03 22:48:46 2021 +0100
+++ b/src/Pure/PIDE/document_status.scala	Thu Mar 04 15:41:46 2021 +0100
@@ -60,7 +60,7 @@
     def merge(status_iterator: Iterator[Command_Status]): Command_Status =
       if (status_iterator.hasNext) {
         val status0 = status_iterator.next()
-        (status0 /: status_iterator)(_ + _)
+        status_iterator.foldLeft(status0)(_ + _)
       }
       else empty
   }
@@ -198,10 +198,10 @@
         st <- state.command_states(version, command)
       } {
         val command_timing =
-          (0.0 /: st.status)({
+          st.status.foldLeft(0.0) {
             case (timing, Markup.Timing(t)) => timing + t.elapsed.seconds
             case (timing, _) => timing
-          })
+          }
         total += command_timing
         if (command_timing > 0.0 && command_timing >= threshold) {
           command_timings += (command -> command_timing)