src/Pure/Tools/named_thms.ML
changeset 26724 ff6ff3a9010e
parent 26397 df68e8dfd0e3
child 29579 cb520b766e00
     1.1 --- a/src/Pure/Tools/named_thms.ML	Fri Apr 18 23:58:04 2008 +0200
     1.2 +++ b/src/Pure/Tools/named_thms.ML	Sat Apr 19 12:04:17 2008 +0200
     1.3 @@ -8,7 +8,6 @@
     1.4  signature NAMED_THMS =
     1.5  sig
     1.6    val get: Proof.context -> thm list
     1.7 -  val pretty: Proof.context -> Pretty.T
     1.8    val add_thm: thm -> Context.generic -> Context.generic
     1.9    val del_thm: thm -> Context.generic -> Context.generic
    1.10    val add: attribute
    1.11 @@ -29,9 +28,6 @@
    1.12  
    1.13  val get = Data.get o Context.Proof;
    1.14  
    1.15 -fun pretty ctxt =
    1.16 -  Pretty.big_list (description ^ ":") (map (ProofContext.pretty_thm ctxt) (get ctxt));
    1.17 -
    1.18  val add_thm = Data.map o Thm.add_thm;
    1.19  val del_thm = Data.map o Thm.del_thm;
    1.20  
    1.21 @@ -42,10 +38,4 @@
    1.22    Attrib.add_attributes [(name, Attrib.add_del_args add del, "declaration of " ^ description)] #>
    1.23    PureThy.add_thms_dynamic (name, Data.get);
    1.24  
    1.25 -val _ =
    1.26 -  OuterSyntax.improper_command ("print_" ^ name ^ "_rules") ("print " ^ description)
    1.27 -    OuterKeyword.diag
    1.28 -    (Scan.succeed (Toplevel.no_timing o Toplevel.unknown_context o
    1.29 -      Toplevel.keep (Pretty.writeln o pretty o Toplevel.context_of)));
    1.30 -
    1.31  end;