src/Pure/Thy/presentation.scala
changeset 74813 2ad892ac749a
parent 74809 48fda7ee1973
child 74816 1e7bb95c75e7
--- a/src/Pure/Thy/presentation.scala	Wed Nov 17 13:11:58 2021 +0100
+++ b/src/Pure/Thy/presentation.scala	Wed Nov 17 15:23:15 2021 +0100
@@ -68,16 +68,6 @@
 
   class State
   {
-    /* already presented theories */
-
-    private val already_presented = Synchronized(Set.empty[String])
-
-    def register_presented(nodes: List[Document.Node.Name]): List[Document.Node.Name] =
-      already_presented.change_result(presented =>
-        (nodes.filterNot(name => presented.contains(name.theory)),
-          presented ++ nodes.iterator.map(_.theory)))
-
-
     /* cached theory exports */
 
     val cache: Term.Cache = Term.Cache.make()
@@ -655,7 +645,7 @@
       })
     }
 
-    val theories = state.register_presented(hierarchy_theories).flatMap(present_theory)
+    val theories = base.session_theories.flatMap(present_theory)
 
     val title = "Session " + session
     HTML.write_document(session_dir, "index.html",