aboutsummaryrefslogtreecommitdiff
path: root/tactics/elim.ml
diff options
context:
space:
mode:
authorGaëtan Gilbert2020-02-06 16:37:33 +0100
committerGaëtan Gilbert2020-02-06 21:17:56 +0100
commit42c28946cded7e81ade816416fc1538341fd4da8 (patch)
tree28984ec151e7782ec6197a349a72263239b3cdde /tactics/elim.ml
parent907df42d15904c13b4e8c5af0e24ff0406b3f6ed (diff)
unsafe_type_of -> get_type_of in Elim.general_decomposer + pf_apply in ifOnHyp
Diffstat (limited to 'tactics/elim.ml')
-rw-r--r--tactics/elim.ml7
1 files changed, 2 insertions, 5 deletions
diff --git a/tactics/elim.ml b/tactics/elim.ml
index ea61b8e4df..c0d533a6f2 100644
--- a/tactics/elim.ml
+++ b/tactics/elim.ml
@@ -80,14 +80,11 @@ let up_to_delta = ref false (* true *)
let general_decompose recognizer c =
Proofview.Goal.enter begin fun gl ->
- let type_of = pf_unsafe_type_of gl in
- let env = pf_env gl in
- let sigma = project gl in
- let typc = type_of c in
+ let typc = pf_get_type_of gl c in
tclTHENS (cut typc)
[ tclTHEN (intro_using tmphyp_name)
(onLastHypId
- (ifOnHyp (recognizer env sigma) (general_decompose_aux (recognizer env sigma))
+ (ifOnHyp recognizer (general_decompose_aux recognizer)
(fun id -> clear [id])));
exact_no_check c ]
end