aboutsummaryrefslogtreecommitdiff
path: root/lib/errors.ml
diff options
context:
space:
mode:
authorPierre Letouzey2014-03-05 16:50:04 +0100
committerPierre Letouzey2014-03-05 16:57:45 +0100
commit8fc2509f354b02ec4e0a3eb6fabc329109686c47 (patch)
treebf7f0738e36d861d57029985ea4f2d3e73d23c15 /lib/errors.ml
parentadfd437f8ae6aaf893119fa4730edecf067dede7 (diff)
Remove some dead-code (thanks to ocaml warnings)
The removed code isn't used locally and isn't exported in the signature
Diffstat (limited to 'lib/errors.ml')
-rw-r--r--lib/errors.ml14
1 files changed, 2 insertions, 12 deletions
diff --git a/lib/errors.ml b/lib/errors.ml
index 9b2e9370d0..9df276465d 100644
--- a/lib/errors.ml
+++ b/lib/errors.ml
@@ -19,17 +19,9 @@ exception Anomaly of string option * std_ppcmds (* System errors *)
let make_anomaly ?label pp =
Anomaly (label, pp)
-let anomaly_gen label pp =
- raise (Anomaly (label, pp))
-
-let anomaly ?loc ?label pp =
- match loc with
+let anomaly ?loc ?label pp = match loc with
| None -> raise (Anomaly (label, pp))
- | Some loc ->
- Loc.raise loc (Anomaly (label, pp))
-
-let anomalylabstrm string pps =
- anomaly_gen (Some string) pps
+ | Some loc -> Loc.raise loc (Anomaly (label, pp))
let is_anomaly = function
| Anomaly _ -> true
@@ -106,8 +98,6 @@ let print e =
isn't printed (used in Ltac debugging). *)
let print_no_report e = print_gen (print_anomaly false) !handle_stack e
-let print_anomaly e = print_anomaly true e
-
(** Predefined handlers **)
let _ = register_handler begin function