aboutsummaryrefslogtreecommitdiffhomepage
path: root/checker/environ.ml
diff options
context:
space:
mode:
authorGravatar letouzey <letouzey@85f007b7-540e-0410-9357-904b9bb8a0f7>2010-09-24 14:24:52 +0000
committerGravatar letouzey <letouzey@85f007b7-540e-0410-9357-904b9bb8a0f7>2010-09-24 14:24:52 +0000
commit13964049858427c5447394c733011f7a0c4f4117 (patch)
tree08827bd1e7e4c54f10c1c77d1d1bf9509d6f9054 /checker/environ.ml
parent6e88e153b42dadb0ded217ad85916ef071455f8b (diff)
Checker: remove some dead code
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@13462 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'checker/environ.ml')
-rw-r--r--checker/environ.ml9
1 files changed, 0 insertions, 9 deletions
diff --git a/checker/environ.ml b/checker/environ.ml
index a72aae91d..8c23a7e46 100644
--- a/checker/environ.ml
+++ b/checker/environ.ml
@@ -118,11 +118,6 @@ let add_constant kn cs env =
env_constants = new_constants } in
{ env with env_globals = new_globals }
-(* constant_type gives the type of a constant *)
-let constant_type env kn =
- let cb = lookup_constant kn env in
- cb.const_type
-
type const_evaluation_result = NoBody | Opaque
exception NotEvaluableConst of const_evaluation_result
@@ -134,10 +129,6 @@ let constant_value env kn =
| Some l_body -> force_constr l_body
| None -> raise (NotEvaluableConst NoBody)
-let constant_opt_value env cst =
- try Some (constant_value env cst)
- with NotEvaluableConst _ -> None
-
(* A global const is evaluable if it is defined and not opaque *)
let evaluable_constant cst env =
try let _ = constant_value env cst in true