src/Pure/Thy/document_build.scala
changeset 74733 255e651a4c5f
parent 73785 b5fb99b985b4
child 74747 10991d115fff
--- a/src/Pure/Thy/document_build.scala	Mon Nov 08 13:51:24 2021 +0100
+++ b/src/Pure/Thy/document_build.scala	Mon Nov 08 16:48:42 2021 +0100
@@ -185,9 +185,6 @@
 
     def document_bibliography: Boolean = options.bool("document_bibliography")
 
-    def document_preprocessor: Option[String] =
-      proper_string(options.string("document_preprocessor"))
-
     def document_logo: Option[String] =
       options.string("document_logo") match {
         case "" => None
@@ -275,16 +272,6 @@
       val root_name1 = "root_" + doc.name
       val root_name = if ((doc_dir + Path.explode(root_name1).tex).is_file) root_name1 else "root"
 
-      for (name <- document_preprocessor) {
-        def message(s: String): String = s + " for document_preprocessor=" + quote(name)
-        val path = doc_dir + Path.explode(name)
-        if (path.is_file) {
-          try { Isabelle_System.bash(File.bash_path(path), cwd = doc_dir.file).check }
-          catch { case ERROR(msg) => cat_error(msg, message("The error(s) above occurred")) }
-        }
-        else error(message("Missing executable"))
-      }
-
       val digests1 = List(doc.print, document_logo.toString, document_build).map(SHA1.digest)
       val digests2 = File.find_files(doc_dir.file, follow_links = true).map(SHA1.digest)
       val sources = SHA1.digest_set(digests1 ::: digests2)