aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorThéo Zimmermann2019-11-26 11:18:35 +0100
committerThéo Zimmermann2019-11-26 11:18:35 +0100
commit686cf492c3bc8fcead400b45525d156c10ac3afb (patch)
tree333430dabc2cde95168768c2be90db8daf2615b8 /plugins
parent669075119cc0ea8e495a83668fad4f6c1e4f5968 (diff)
Undeprecate Add Setoid / Add Morphism.
The proposed replacements are not satisfying because they are more complicated to use. Following the discussion in #8713, we decide to remove the deprecation warning for these commands.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/ltac/rewrite.ml10
1 files changed, 0 insertions, 10 deletions
diff --git a/plugins/ltac/rewrite.ml b/plugins/ltac/rewrite.ml
index 5618fd7bc3..2998e1c767 100644
--- a/plugins/ltac/rewrite.ml
+++ b/plugins/ltac/rewrite.ml
@@ -1944,12 +1944,7 @@ let default_morphism sign m =
let evars, mor = resolve_one_typeclass env (goalevars evars) morph in
mor, proper_projection env sigma mor morph
-let warn_add_setoid_deprecated =
- CWarnings.create ~name:"add-setoid" ~category:"deprecated" (fun () ->
- Pp.(str "Add Setoid is deprecated, please use Add Parametric Relation."))
-
let add_setoid atts binders a aeq t n =
- warn_add_setoid_deprecated ?loc:a.CAst.loc ();
init_setoid ();
let () = declare_instance_refl atts binders a aeq n (mkappc "Seq_refl" [a;aeq;t]) in
let () = declare_instance_sym atts binders a aeq n (mkappc "Seq_sym" [a;aeq;t]) in
@@ -1966,10 +1961,6 @@ let make_tactic name =
let tacqid = Libnames.qualid_of_string name in
TacArg (CAst.make @@ (TacCall (CAst.make (tacqid, []))))
-let warn_add_morphism_deprecated =
- CWarnings.create ~name:"add-morphism" ~category:"deprecated" (fun () ->
- Pp.(str "Add Morphism f : id is deprecated, please use Add Morphism f with signature (...) as id"))
-
let add_morphism_as_parameter atts m n : unit =
init_setoid ();
let instance_id = add_suffix n "_Proper" in
@@ -1986,7 +1977,6 @@ let add_morphism_as_parameter atts m n : unit =
declare_projection n instance_id (GlobRef.ConstRef cst)
let add_morphism_interactive atts m n : Lemmas.t =
- warn_add_morphism_deprecated ?loc:m.CAst.loc ();
init_setoid ();
let instance_id = add_suffix n "_Proper" in
let env = Global.env () in