src/Pure/PIDE/markup_tree.scala
changeset 51618 a3577cd80c41
parent 50642 aca12f646772
child 52642 84eb792224a8
--- a/src/Pure/PIDE/markup_tree.scala	Thu Apr 04 18:06:48 2013 +0200
+++ b/src/Pure/PIDE/markup_tree.scala	Thu Apr 04 18:20:00 2013 +0200
@@ -8,8 +8,6 @@
 
 package isabelle
 
-import java.lang.System
-import javax.swing.tree.DefaultMutableTreeNode
 
 import scala.collection.immutable.SortedMap
 import scala.collection.mutable
@@ -132,7 +130,7 @@
 }
 
 
-final class Markup_Tree private(private val branches: Markup_Tree.Branches.T)
+final class Markup_Tree private(val branches: Markup_Tree.Branches.T)
 {
   import Markup_Tree._
 
@@ -280,15 +278,5 @@
     stream(root_range.start,
       List((Text.Info(root_range, root_info), overlapping(root_range).toStream)))
   }
-
-  def swing_tree(parent: DefaultMutableTreeNode,
-    swing_node: Text.Info[List[XML.Elem]] => DefaultMutableTreeNode)
-  {
-    for ((_, entry) <- branches) {
-      val node = swing_node(Text.Info(entry.range, entry.markup))
-      entry.subtree.swing_tree(node, swing_node)
-      parent.add(node)
-    }
-  }
 }