From 013bc34fd828a5eb4eacd721a8021b64abf8a822 Mon Sep 17 00:00:00 2001 From: glondu Date: Tue, 28 Sep 2010 15:31:59 +0000 Subject: Remove kind_of_type, kind_of_term2 (dead code) git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@13467 85f007b7-540e-0410-9357-904b9bb8a0f7 --- kernel/term.ml | 19 ------------------- kernel/term.mli | 11 ----------- 2 files changed, 30 deletions(-) (limited to 'kernel') diff --git a/kernel/term.ml b/kernel/term.ml index 0e0d598a08..844ffa62cb 100644 --- a/kernel/term.ml +++ b/kernel/term.ml @@ -102,24 +102,6 @@ type ('constr, 'types) kind_of_term = | Fix of ('constr, 'types) pfixpoint | CoFix of ('constr, 'types) pcofixpoint -(* Experimental *) -type ('constr, 'types) kind_of_type = - | SortType of sorts - | CastType of 'types * 'types - | ProdType of name * 'types * 'types - | LetInType of name * 'constr * 'types * 'types - | AtomicType of 'constr * 'constr array - -let kind_of_type = function - | Sort s -> SortType s - | Cast (c,_,t) -> CastType (c, t) - | Prod (na,t,c) -> ProdType (na, t, c) - | LetIn (na,b,t,c) -> LetInType (na, b, t, c) - | App (c,l) -> AtomicType (c, l) - | (Rel _ | Meta _ | Var _ | Evar _ | Const _ | Case _ | Fix _ | CoFix _ | Ind _ as c) - -> AtomicType (c,[||]) - | (Lambda _ | Construct _) -> failwith "Not a type" - (* constr is the fixpoint of the previous type. Requires option -rectypes of the Caml compiler to be set *) type constr = (constr,constr) kind_of_term @@ -273,7 +255,6 @@ let mkFix fix = Fix fix let mkCoFix cofix = CoFix cofix let kind_of_term c = c -let kind_of_term2 c = c (************************************************************************) (* kind_of_term = constructions as seen by the user *) diff --git a/kernel/term.mli b/kernel/term.mli index 10f51b7acb..4b9b5fdcce 100644 --- a/kernel/term.mli +++ b/kernel/term.mli @@ -215,17 +215,6 @@ type ('constr, 'types) kind_of_term = term *) val kind_of_term : constr -> (constr, types) kind_of_term -val kind_of_term2 : constr -> ((constr,types) kind_of_term,constr) kind_of_term - -(** Experimental *) -type ('constr, 'types) kind_of_type = - | SortType of sorts - | CastType of 'types * 'types - | ProdType of name * 'types * 'types - | LetInType of name * 'constr * 'types * 'types - | AtomicType of 'constr * 'constr array - -val kind_of_type : types -> (constr, types) kind_of_type (** {6 Simple term case analysis. } *) -- cgit v1.2.3