src/Pure/Isar/proof_context.ML
changeset 30284 907da436f8a9
parent 30279 84097bba7bdc
child 30364 577edc39b501
--- a/src/Pure/Isar/proof_context.ML	Thu Mar 05 15:25:35 2009 +0100
+++ b/src/Pure/Isar/proof_context.ML	Thu Mar 05 15:27:07 2009 +0100
@@ -263,11 +263,9 @@
 
 fun transfer_syntax thy =
   map_syntax (LocalSyntax.rebuild thy) #>
-  map_consts (fn consts as (local_consts, global_consts) =>
-    let val thy_consts = Sign.consts_of thy in
-      if Consts.eq_consts (thy_consts, global_consts) then consts
-      else (Consts.merge (local_consts, thy_consts), thy_consts)
-    end);
+  map_consts (fn (local_consts, _) =>
+    let val thy_consts = Sign.consts_of thy
+    in (Consts.merge (local_consts, thy_consts), thy_consts) end);
 
 fun transfer thy = Context.transfer_proof thy #> transfer_syntax thy;