src/Pure/PIDE/document.scala
changeset 44442 cb18e4f09053
parent 44436 546adfa8a6fc
child 44443 35d67b2056cc
--- a/src/Pure/PIDE/document.scala	Wed Aug 24 15:55:43 2011 +0200
+++ b/src/Pure/PIDE/document.scala	Wed Aug 24 16:27:27 2011 +0200
@@ -54,11 +54,10 @@
     case class Header[A, B](header: Node_Header) extends Edit[A, B]
     case class Perspective[A, B](perspective: B) extends Edit[A, B]
 
-    def norm_header[A, B](f: String => String, g: String => String, header: Node_Header)
-        : Header[A, B] =
+    def norm_header(f: String => String, g: String => String, header: Node_Header): Node_Header =
       header match {
-        case Exn.Res(h) => Header[A, B](Exn.capture { h.norm_deps(f, g) })
-        case exn => Header[A, B](exn)
+        case Exn.Res(h) => Exn.capture { h.norm_deps(f, g) }
+        case exn => exn
       }
 
     val empty: Node = Node(Exn.Exn(ERROR("Bad theory header")), Nil, Map(), Linear_Set())