aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorherbelin2006-08-24 17:03:28 +0000
committerherbelin2006-08-24 17:03:28 +0000
commit479c522938fea2fdc4281123c3e0581551f955a8 (patch)
treef4583ccd46c39a50dea678b37bf2d659bca76a0d
parenta0726f4ae896bb668d4da4c96501686b25cd82cd (diff)
Morceau de code mort
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@9082 85f007b7-540e-0410-9357-904b9bb8a0f7
-rw-r--r--pretyping/recordops.ml2
-rwxr-xr-xpretyping/recordops.mli2
-rw-r--r--toplevel/record.ml3
3 files changed, 3 insertions, 4 deletions
diff --git a/pretyping/recordops.ml b/pretyping/recordops.ml
index 5fffeb7093..fa3a61afce 100644
--- a/pretyping/recordops.ml
+++ b/pretyping/recordops.ml
@@ -78,7 +78,7 @@ let (inStruc,outStruc) =
discharge_function = discharge_structure;
export_function = (function x -> Some x) }
-let declare_structure (s,c,_,kl,pl) =
+let declare_structure (s,c,kl,pl) =
Lib.add_anonymous_leaf (inStruc (s,c,kl,pl))
let lookup_structure indsp = Indmap.find indsp !structure_table
diff --git a/pretyping/recordops.mli b/pretyping/recordops.mli
index f917909e22..c8942b5d48 100755
--- a/pretyping/recordops.mli
+++ b/pretyping/recordops.mli
@@ -22,7 +22,7 @@ open Library
constructor (the name of which defaults to Build_S) *)
val declare_structure :
- inductive * identifier * int * bool list * constant option list -> unit
+ inductive * identifier * bool list * constant option list -> unit
(* [lookup_projections isp] returns the projections associated to the
inductive path [isp] if it corresponds to a structure, otherwise
diff --git a/toplevel/record.ml b/toplevel/record.ml
index 9c2d9732a3..28ecb909a2 100644
--- a/toplevel/record.ml
+++ b/toplevel/record.ml
@@ -192,7 +192,6 @@ let declare_projections indsp coers fields =
list telling if the corresponding fields must me declared as coercion *)
let definition_structure ((is_coe,(_,idstruc)),ps,cfs,idbuild,s) =
let coers,fs = List.split cfs in
- let nparams = local_binders_length ps in
let extract_name acc = function
Vernacexpr.AssumExpr((_,Name id),_) -> id::acc
| Vernacexpr.DefExpr ((_,Name id),_,_) -> id::acc
@@ -219,4 +218,4 @@ let definition_structure ((is_coe,(_,idstruc)),ps,cfs,idbuild,s) =
let kinds,sp_projs = declare_projections rsp coers fields in
let build = ConstructRef (rsp,1) in (* This is construct path of idbuild *)
if is_coe then Class.try_add_new_coercion build Global;
- Recordops.declare_structure(rsp,idbuild,nparams,List.rev kinds,List.rev sp_projs)
+ Recordops.declare_structure(rsp,idbuild,List.rev kinds,List.rev sp_projs)