--- a/src/HOL/Tools/primrec.ML Tue Sep 28 12:48:05 2010 +0200
+++ b/src/HOL/Tools/primrec.ML Tue Sep 28 15:32:59 2010 +0200
@@ -320,12 +320,7 @@
val _ =
Outer_Syntax.command "primrec" "define primitive recursive functions on datatypes"
Keyword.thy_decl
- ((primrec_decl >> (fn ((opt_target, fixes), specs) =>
- Toplevel.local_theory opt_target (add_primrec_cmd fixes specs #> snd)))
- || (old_primrec_decl >> (fn ((unchecked, alt_name), eqns) =>
- Toplevel.theory (snd o
- (if unchecked then OldPrimrec.add_primrec_unchecked else OldPrimrec.add_primrec)
- alt_name (map Parse.triple_swap eqns) o
- tap (fn _ => legacy_feature "Old variant of 'primrec' command -- use new syntax instead")))));
+ (primrec_decl >> (fn ((opt_target, fixes), specs) =>
+ Toplevel.local_theory opt_target (add_primrec_cmd fixes specs #> snd)));
end;