removed somewhat pointless operations (see a6c69599ab99);
authorwenzelm
Tue, 02 Aug 2022 12:57:04 +0200
changeset 75734 7671f9fc66d7
parent 75733 d3430f302c2e
child 75735 5934209c4907
removed somewhat pointless operations (see a6c69599ab99);
src/Pure/Thy/export.scala
--- a/src/Pure/Thy/export.scala	Sat Jul 30 14:49:22 2022 +0200
+++ b/src/Pure/Thy/export.scala	Tue Aug 02 12:57:04 2022 +0200
@@ -83,17 +83,6 @@
         else None
       }
     }
-
-    def read(dir: Path, cache: XML.Cache): Option[Entry] = {
-      val path = dir + Path.basic(theory) + Path.explode(name)
-      if (path.is_file) {
-        val executable = File.is_executable(path)
-        val uncompressed = Bytes.read(path)
-        val body = Future.value((false, uncompressed))
-        Some(Entry(this, executable, body, cache))
-      }
-      else None
-    }
   }
 
   def read_theory_names(db: SQL.Database, session_name: String): List[String] = {
@@ -323,25 +312,6 @@
 
         override def toString: String = snapshot.toString
       }
-
-    def directory(
-      dir: Path,
-      cache: XML.Cache,
-      session_name: String,
-      theory_name: String
-    ) : Provider = {
-      new Provider {
-        def apply(export_name: String): Option[Entry] =
-          Entry_Name(session = session_name, theory = theory_name, name = export_name)
-            .read(dir, cache)
-
-        def focus(other_theory: String): Provider =
-          if (other_theory == theory_name) this
-          else Provider.directory(dir, cache, session_name, other_theory)
-
-        override def toString: String = dir.toString
-      }
-    }
   }
 
   trait Provider {