removed dead code: const_typargs, num_typargs, init;
authorwenzelm
Sat, 18 Aug 2007 13:32:23 +0200
changeset 24322 dc7336b8c54c
parent 24321 e9d99744e40c
child 24323 9aa7b5708eac
removed dead code: const_typargs, num_typargs, init;
src/HOL/Tools/res_clause.ML
--- a/src/HOL/Tools/res_clause.ML	Sat Aug 18 13:32:22 2007 +0200
+++ b/src/HOL/Tools/res_clause.ML	Sat Aug 18 13:32:23 2007 +0200
@@ -43,7 +43,6 @@
   datatype type_literal = LTVar of string * string | LTFree of string * string
   val mk_typ_var_sort: typ -> typ_var * sort
   exception CLAUSE of string * term
-  val init : theory -> unit
   val isMeta : string -> bool
   val add_typs_aux : (typ_var * string list) list -> type_literal list * type_literal list
   val get_tvar_strs: (typ_var * sort) list -> string list
@@ -266,16 +265,6 @@
 exception CLAUSE of string * term;
 
 
-(*Declarations of the current theory--to allow suppressing types.*)
-val const_typargs = ref (Library.K [] : (string*typ -> typ list));
-
-fun num_typargs(s,T) = length (!const_typargs (s,T));
-
-(*Initialize the type suppression mechanism with the current theory before
-    producing any clauses!*)
-fun init thy = (const_typargs := Sign.const_typargs thy);
-
-
 (*Flatten a type to a fol_type while accumulating sort constraints on the TFrees and
   TVars it contains.*)
 fun type_of (Type (a, Ts)) =