src/Pure/Thy/sessions.scala
changeset 75764 07e097f60b85
parent 75760 f8be63d2ec6f
child 75768 be79948f7f23
--- a/src/Pure/Thy/sessions.scala	Fri Aug 05 14:05:42 2022 +0200
+++ b/src/Pure/Thy/sessions.scala	Fri Aug 05 14:44:47 2022 +0200
@@ -1377,16 +1377,6 @@
     def open_database(name: String, output: Boolean = false): SQL.Database =
       try_open_database(name, output = output) getOrElse bad_database(name)
 
-    def open_databases(names: List[String]): List[SQL.Database] = {
-      val res = names.map(name => name -> try_open_database(name))
-      res.collectFirst({ case (name, None) => name }) match {
-        case None => res.map(_._2.get)
-        case Some(bad) =>
-          for ((_, Some(db)) <- res) db.close()
-          bad_database(bad)
-      }
-    }
-
     def clean_output(name: String): (Boolean, Boolean) = {
       val relevant_db =
         database_server && {