diff options
| author | Pierre-Marie Pédrot | 2015-12-12 18:16:01 +0100 |
|---|---|---|
| committer | Pierre-Marie Pédrot | 2015-12-12 18:19:21 +0100 |
| commit | 0e4f4788f710d58754b1909395b1fe9d5e001d69 (patch) | |
| tree | a91b254be97849700b586419047140b2185f6737 | |
| parent | 50d241267e2eb41cb06eb2f48a5ce440f0458b71 (diff) | |
Removing dead unsafe code in Genarg.
| -rw-r--r-- | lib/genarg.ml | 8 | ||||
| -rw-r--r-- | lib/genarg.mli | 20 |
2 files changed, 0 insertions, 28 deletions
diff --git a/lib/genarg.ml b/lib/genarg.ml index 42458ecb31..149d872c52 100644 --- a/lib/genarg.ml +++ b/lib/genarg.ml @@ -225,11 +225,3 @@ let register_name0 t name = match t with let get_name0 name = String.Map.find name !arg0_names - -module Unsafe = -struct - -let inj tpe x = (tpe, x) -let prj (_, x) = x - -end diff --git a/lib/genarg.mli b/lib/genarg.mli index a269f92774..3a18581d7b 100644 --- a/lib/genarg.mli +++ b/lib/genarg.mli @@ -256,23 +256,3 @@ val register_name0 : ('a, 'b, 'c) genarg_type -> string -> unit val get_name0 : string -> string (** Return the absolute path of a given witness. *) - -(** {5 Unsafe loophole} *) - -module Unsafe : -sig - -(** Unsafe magic functions. Not for kids. This is provided here as a loophole to - escape this module. Do NOT use outside of the dedicated areas. NOT. EVER. *) - -val inj : argument_type -> Obj.t -> 'lev generic_argument -(** Injects an object as generic argument. !!!BEWARE!!! only do this as - [inj tpe x] where: - - 1. [tpe] is the reification of a [('a, 'b, 'c) genarg_type]; - 2. [x] has type ['a], ['b] or ['c] according to the return level ['lev]. *) - -val prj : 'lev generic_argument -> Obj.t -(** Recover the contents of a generic argument. *) - -end |
