removed obsolete Sign.read_tyname/const (cf. ProofContext);
authorwenzelm
Wed, 07 Nov 2007 16:42:55 +0100
changeset 25323 50d4c8257d06
parent 25322 e2eac0c30ff5
child 25324 ed4ac5966c68
removed obsolete Sign.read_tyname/const (cf. ProofContext);
src/Pure/Isar/args.ML
src/Pure/sign.ML
--- a/src/Pure/Isar/args.ML	Wed Nov 07 03:51:17 2007 +0100
+++ b/src/Pure/Isar/args.ML	Wed Nov 07 16:42:55 2007 +0100
@@ -330,10 +330,10 @@
 
 (* type and constant names *)
 
-val tyname = Scan.peek (named_typ o Context.cases Sign.read_tyname ProofContext.read_tyname)
+val tyname = Scan.peek (named_typ o ProofContext.read_tyname o Context.proof_of)
   >> (fn Type (c, _) => c | TFree (a, _) => a | _ => "");
 
-val const = Scan.peek (named_term o Context.cases Sign.read_const ProofContext.read_const)
+val const = Scan.peek (named_term o ProofContext.read_const o Context.proof_of)
   >> (fn Const (c, _) => c | Free (x, _) => x | _ => "");
 
 
--- a/src/Pure/sign.ML	Wed Nov 07 03:51:17 2007 +0100
+++ b/src/Pure/sign.ML	Wed Nov 07 16:42:55 2007 +0100
@@ -142,8 +142,6 @@
   val read_typ: theory -> string -> typ
   val read_typ_syntax: theory -> string -> typ
   val read_typ_abbrev: theory -> string -> typ
-  val read_tyname: theory -> string -> typ
-  val read_const: theory -> string -> term
   val read_def_terms': Pretty.pp -> (string -> bool) -> Syntax.syntax -> Consts.T ->
     (string -> string option) -> Proof.context ->
     (indexname -> typ option) * (indexname -> sort option) ->
@@ -524,16 +522,6 @@
 end;
 
 
-(* type and constant names *)
-
-fun read_tyname thy raw_c =
-  let val c = intern_type thy raw_c
-  in Type (c, replicate (arity_number thy c) dummyT) end;
-
-val read_const = Consts.read_const o consts_of;
-
-
-
 (* read_def_terms -- read terms and infer types *)    (*exception ERROR*)
 
 (*