diff options
| author | Arnaud Spiwack | 2014-08-06 15:27:28 +0200 |
|---|---|---|
| committer | Arnaud Spiwack | 2014-08-06 15:27:28 +0200 |
| commit | 039c0451aa06825451858e580c8c3757d4ff4c2c (patch) | |
| tree | de2540e1d479be1cc5e539c4217e44238072a176 /interp | |
| parent | 31e780a275af0ad4be10a61b0096b8f5be38b6d3 (diff) | |
Revert the change in Constrintern introduced by "Add a type of untyped term to Ltac's value."
It was commit 52247f50fa9aed83cc4a9a714b6b8f779479fd9b.
The closure in uconstr renders these changes (pertaining to substitution of ltac variables during internalisation) obsolete.
Diffstat (limited to 'interp')
| -rw-r--r-- | interp/constrintern.ml | 5 | ||||
| -rw-r--r-- | interp/constrintern.mli | 2 |
2 files changed, 0 insertions, 7 deletions
diff --git a/interp/constrintern.ml b/interp/constrintern.ml index fb232762cd..6ae5ca352b 100644 --- a/interp/constrintern.ml +++ b/interp/constrintern.ml @@ -69,7 +69,6 @@ type glob_binder = (Name.t * binding_kind * glob_constr option * glob_constr) type ltac_sign = { ltac_vars : Id.Set.t; ltac_bound : Id.Set.t; - ltac_subst : glob_constr Lazy.t Id.Map.t; } let interning_grammar = ref false @@ -657,9 +656,6 @@ let intern_var genv (ltacvars,ntnvars) namedctx loc id = if Id.Set.mem id genv.ids || Id.Set.mem id ltacvars.ltac_vars then GVar (loc,id), [], [], [] - (* Is [id] bound to a glob_constr in the the ltac context *) - else if Id.Map.mem id ltacvars.ltac_subst then - Lazy.force (Id.Map.find id ltacvars.ltac_subst), [], [], [] (* Is [id] a notation variable *) else if Id.Map.mem id ntnvars then @@ -1784,7 +1780,6 @@ let scope_of_type_kind = function let empty_ltac_sign = { ltac_vars = Id.Set.empty; ltac_bound = Id.Set.empty; - ltac_subst = Id.Map.empty; } let intern_gen kind env diff --git a/interp/constrintern.mli b/interp/constrintern.mli index b6cae349d5..b5cad5d284 100644 --- a/interp/constrintern.mli +++ b/interp/constrintern.mli @@ -72,8 +72,6 @@ type ltac_sign = { (** Variables of Ltac which may be bound to a term *) ltac_bound : Id.Set.t; (** Other variables of Ltac *) - ltac_subst : glob_constr Lazy.t Id.Map.t; - (** Substitution for untyped terms *) } val empty_ltac_sign : ltac_sign |
