aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Herbelin2016-04-27 22:13:03 +0200
committerHugo Herbelin2016-04-27 22:13:03 +0200
commit8ab8aba84521a8a81374619357452e081d0f758f (patch)
tree34fbdd599071199343ceed200af5b8a5823e562f
parent3d1ef11e4a70e61bb8b4c6e2c1414a19ceb42886 (diff)
Revert "A fix to #3709: ensuring extra parentheses when a tactic entry has a"
This reverts commit df1e24f64f68318221d08246098837368ee1b406.
-rw-r--r--ltac/tacentries.ml18
1 files changed, 0 insertions, 18 deletions
diff --git a/ltac/tacentries.ml b/ltac/tacentries.ml
index ef09ea436d..f94f84a73b 100644
--- a/ltac/tacentries.ml
+++ b/ltac/tacentries.ml
@@ -285,23 +285,6 @@ let inTacticGrammar : tactic_grammar_obj -> obj =
subst_function = subst_tactic_notation;
classify_function = classify_tactic_notation}
-let rec safe_printing_level n prods =
- match List.last prods with
- | TacTerm _ -> n
- | TacNonTerm (_, (nt, sep), _) ->
- let level = match parse_user_entry nt sep with
- | Extend.Uentryl ("tactic",n') -> Some n'
- | Extend.Uentry ("tactic") -> Some 5
- | Extend.Uentry ("binder_tactic") -> Some 5
- | _ -> None in
- match level with
- | Some n' when n' > n ->
- msg_warning (strbrk "Notation ends with a tactic at a level "
- ++ strbrk "higher than the tactic itself. Using this level "
- ++ strbrk "for ensuring correct parenthesizing when printing.");
- n'
- | _ -> n
-
let cons_production_parameter = function
| TacTerm _ -> None
| TacNonTerm (_, _, id) -> Some id
@@ -322,7 +305,6 @@ let add_glob_tactic_notation local n prods forml ids tac =
let add_tactic_notation local n prods e =
let ids = List.map_filter cons_production_parameter prods in
- let printing_level = safe_printing_level n prods in
let prods = List.map (interp_prod_item n) prods in
let tac = Tacintern.glob_tactic_env ids (Global.env()) e in
add_glob_tactic_notation local n prods false ids tac