removed unused operation: unclear wrt. Symbol.encode/decode status;
authorwenzelm
Fri, 06 Jan 2023 16:50:43 +0100
changeset 76934 fffb978dd683
parent 76933 dd53bb198eb1
child 76935 da3310cc00f0
removed unused operation: unclear wrt. Symbol.encode/decode status;
src/Pure/Thy/export.scala
--- a/src/Pure/Thy/export.scala	Fri Jan 06 16:43:51 2023 +0100
+++ b/src/Pure/Thy/export.scala	Fri Jan 06 16:50:43 2023 +0100
@@ -434,23 +434,6 @@
     def source_file(name: String): Sessions.Source_File =
       get_source_file(name).getOrElse(error("Missing session source file " + quote(name)))
 
-    def node_source(name: Document.Node.Name): String = {
-      def snapshot_source: Option[String] =
-        for {
-          snapshot <- document_snapshot
-          node = snapshot.get_node(name)
-          text = node.source if text.nonEmpty
-        } yield text
-
-      def db_source: String =
-        get_source_file(name.node) match {
-          case Some(file) => file.text
-          case None => ""
-        }
-
-      snapshot_source getOrElse db_source
-    }
-
     def classpath(): List[File.Content] = {
       (for {
         session <- session_stack.iterator