aboutsummaryrefslogtreecommitdiff
path: root/printing
diff options
context:
space:
mode:
authorGaëtan Gilbert2018-10-11 17:55:01 +0200
committerGaëtan Gilbert2018-11-02 13:26:16 +0100
commit207c6710606c1581a9b3f207769ceaeb99f5c883 (patch)
tree39e681966fb69f3921d0331817941f340661b04d /printing
parent1bb5e2d8c3149401b6e7513b09c5eba054696477 (diff)
Remove is_universe_polymorphism from printing
Diffstat (limited to 'printing')
-rw-r--r--printing/prettyp.ml4
-rw-r--r--printing/printer.ml8
2 files changed, 2 insertions, 10 deletions
diff --git a/printing/prettyp.ml b/printing/prettyp.ml
index 4619e049e0..37913edc23 100644
--- a/printing/prettyp.ml
+++ b/printing/prettyp.ml
@@ -227,13 +227,11 @@ let print_if_is_coercion ref =
let print_polymorphism ref =
let poly = Global.is_polymorphic ref in
let template_poly = Global.is_template_polymorphic ref in
- if Flags.is_universe_polymorphism () || poly || template_poly then
- [ pr_global ref ++ str " is " ++ str
+ [ pr_global ref ++ str " is " ++ str
(if poly then "universe polymorphic"
else if template_poly then
"template universe polymorphic"
else "not universe polymorphic") ]
- else []
let print_type_in_type ref =
let unsafe = Global.is_type_in_type ref in
diff --git a/printing/printer.ml b/printing/printer.ml
index 3cf995a005..da364c8b9e 100644
--- a/printing/printer.ml
+++ b/printing/printer.ml
@@ -969,19 +969,13 @@ let pr_assumptionset env sigma s =
] in
prlist_with_sep fnl (fun x -> x) (Option.List.flatten assums)
-let xor a b =
- (a && not b) || (not a && b)
-
let pr_cumulative poly cum =
if poly then
if cum then str "Cumulative " else str "NonCumulative "
else mt ()
let pr_polymorphic b =
- let print = xor (Flags.is_universe_polymorphism ()) b in
- if print then
- if b then str"Polymorphic " else str"Monomorphic "
- else mt ()
+ if b then str"Polymorphic " else str"Monomorphic "
(* print the proof step, possibly with diffs highlighted, *)
let print_and_diff oldp newp =