Remove improper use of mixin in class package.
authorballarin
Thu, 13 May 2010 13:29:43 +0200
changeset 36904 3e200347a22e
parent 36902 c6bae4456741
child 36905 b47fd7148b57
Remove improper use of mixin in class package.
src/Pure/Isar/class.ML
--- a/src/Pure/Isar/class.ML	Wed May 12 22:33:10 2010 -0700
+++ b/src/Pure/Isar/class.ML	Thu May 13 13:29:43 2010 +0200
@@ -293,8 +293,7 @@
     |-> (fn (param_map, params, assm_axiom) =>
        `(fn thy => calculate thy class sups base_sort param_map assm_axiom)
     #-> (fn (base_morph, eq_morph, export_morph, axiom, assm_intro, of_class) =>
-       Locale.add_registration (class, case eq_morph of SOME eq_morph => base_morph $> eq_morph | NONE => base_morph)
-         (*FIXME should avoid modification of base morphism, but then problem with sublocale linorder < distrib_lattice*)
+       Locale.add_registration (class, base_morph)
          (Option.map (rpair true) eq_morph) export_morph
     #> register class sups params base_sort base_morph export_morph axiom assm_intro of_class))
     |> Theory_Target.init (SOME class)