src/Pure/System/platform.scala
changeset 51617 4e49bba9772d
parent 46117 edd50ec8d471
child 53582 8533b4cb8dd7
--- a/src/Pure/System/platform.scala	Thu Apr 04 17:58:47 2013 +0200
+++ b/src/Pure/System/platform.scala	Thu Apr 04 18:06:48 2013 +0200
@@ -8,7 +8,6 @@
 package isabelle
 
 import java.lang.System
-import javax.swing.UIManager
 
 import scala.util.matching.Regex
 
@@ -58,21 +57,5 @@
   /* JVM name */
 
   val jvm_name: String = System.getProperty("java.vm.name")
-
-
-  /* Swing look-and-feel */
-
-  private def find_laf(name: String): Option[String] =
-    UIManager.getInstalledLookAndFeels().find(_.getName == name).map(_.getClassName)
-
-  def get_laf(): String =
-  {
-    if (is_windows || is_macos) UIManager.getSystemLookAndFeelClassName()
-    else
-      find_laf("Nimbus") orElse find_laf("GTK+") getOrElse
-      UIManager.getCrossPlatformLookAndFeelClassName()
-  }
-
-  def init_laf(): Unit = UIManager.setLookAndFeel(get_laf())
 }