aboutsummaryrefslogtreecommitdiffhomepage
path: root/printing
diff options
context:
space:
mode:
authorGravatar Pierre Letouzey <pierre.letouzey@inria.fr>2014-03-05 14:59:16 +0100
committerGravatar Pierre Letouzey <pierre.letouzey@inria.fr>2014-03-05 15:41:21 +0100
commitadfd437f8ae6aaf893119fa4730edecf067dede7 (patch)
treea395e5f9e50f5cde1419c1fbdb0870d9efdc09b8 /printing
parent3080dd5e27ee20ba0b3537c7882e7ad8af414325 (diff)
Remove many superfluous 'open' indicated by ocamlc -w +33
With ocaml 4.01, the 'unused open' warning also checks the mli :-) Beware: some open are reported as useless when compiling with camlp5, but are necessary for compatibility with camlp4. These open are now marked with a comment.
Diffstat (limited to 'printing')
-rw-r--r--printing/genprint.ml1
-rw-r--r--printing/ppconstr.mli2
-rw-r--r--printing/pptactic.mli1
-rw-r--r--printing/prettyp.mli2
-rw-r--r--printing/printer.ml1
-rw-r--r--printing/printer.mli5
-rw-r--r--printing/printmod.ml1
7 files changed, 0 insertions, 13 deletions
diff --git a/printing/genprint.ml b/printing/genprint.ml
index dcd357d5c..02f2dd63b 100644
--- a/printing/genprint.ml
+++ b/printing/genprint.ml
@@ -7,7 +7,6 @@
(************************************************************************)
open Pp
-open Util
open Genarg
type ('raw, 'glb, 'top) printer = {
diff --git a/printing/ppconstr.mli b/printing/ppconstr.mli
index 95498b8d8..79399094d 100644
--- a/printing/ppconstr.mli
+++ b/printing/ppconstr.mli
@@ -8,8 +8,6 @@
open Loc
open Pp
-open Environ
-open Term
open Libnames
open Constrexpr
open Names
diff --git a/printing/pptactic.mli b/printing/pptactic.mli
index 47640afa6..e20e3ae01 100644
--- a/printing/pptactic.mli
+++ b/printing/pptactic.mli
@@ -11,7 +11,6 @@ open Genarg
open Names
open Constrexpr
open Tacexpr
-open Proof_type
open Ppextend
open Environ
open Pattern
diff --git a/printing/prettyp.mli b/printing/prettyp.mli
index 1bf8c6ab3..0cbb7a86c 100644
--- a/printing/prettyp.mli
+++ b/printing/prettyp.mli
@@ -8,13 +8,11 @@
open Pp
open Names
-open Context
open Term
open Environ
open Reductionops
open Libnames
open Globnames
-open Nametab
open Misctypes
(** A Pretty-Printer for the Calculus of Inductive Constructions. *)
diff --git a/printing/printer.ml b/printing/printer.ml
index 9143d1c5b..ad154ec55 100644
--- a/printing/printer.ml
+++ b/printing/printer.ml
@@ -12,7 +12,6 @@ open Util
open Names
open Term
open Vars
-open Context
open Environ
open Globnames
open Nametab
diff --git a/printing/printer.mli b/printing/printer.mli
index 2d7f0a5d3..6ca55b16b 100644
--- a/printing/printer.mli
+++ b/printing/printer.mli
@@ -8,19 +8,14 @@
open Pp
open Names
-open Libnames
open Globnames
open Term
open Context
open Environ
-open Glob_term
open Pattern
-open Nametab
-open Termops
open Evd
open Proof_type
open Glob_term
-open Tacexpr
(** These are the entry points for printing terms, context, tac, ... *)
diff --git a/printing/printmod.ml b/printing/printmod.ml
index 34224d7b5..112abeec9 100644
--- a/printing/printmod.ml
+++ b/printing/printmod.ml
@@ -7,7 +7,6 @@
(************************************************************************)
open Pp
-open Errors
open Names
open Declarations
open Nameops