aboutsummaryrefslogtreecommitdiff
path: root/src/tac2intern.ml
diff options
context:
space:
mode:
authorPierre-Marie Pédrot2017-08-29 15:19:30 +0200
committerPierre-Marie Pédrot2017-08-29 15:19:30 +0200
commitf6154c8a086faee725b4f41fb4b2586d7cb6c51d (patch)
treea0a1014646eb817b765b8262980f1bd06a8b2e0c /src/tac2intern.ml
parent9f79d601c0863d5144fc07c5cea0e03ef41d244b (diff)
Removing dead code for handling of array litterals.
Diffstat (limited to 'src/tac2intern.ml')
-rw-r--r--src/tac2intern.ml6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/tac2intern.ml b/src/tac2intern.ml
index 9d22b18af4..02dfa1c08b 100644
--- a/src/tac2intern.ml
+++ b/src/tac2intern.ml
@@ -416,13 +416,13 @@ let rec is_value = function
| GTacCst (_, _, []) -> true
| GTacOpn (_, el) -> List.for_all is_value el
| GTacCst (Other kn, _, el) -> is_pure_constructor kn && List.for_all is_value el
-| GTacArr _ | GTacCse _ | GTacPrj _ | GTacSet _ | GTacExt _ | GTacPrm _
+| GTacCse _ | GTacPrj _ | GTacSet _ | GTacExt _ | GTacPrm _
| GTacWth _ -> false
let is_rec_rhs = function
| GTacFun _ -> true
| GTacAtm _ | GTacVar _ | GTacRef _ | GTacApp _ | GTacLet _ | GTacPrj _
-| GTacSet _ | GTacArr _ | GTacExt _ | GTacPrm _ | GTacCst _
+| GTacSet _ | GTacExt _ | GTacPrm _ | GTacCst _
| GTacCse _ | GTacOpn _ | GTacWth _ -> false
let rec fv_type f t accu = match t with
@@ -1294,8 +1294,6 @@ let rec subst_expr subst e = match e with
| GTacLet (r, bs, e) ->
let bs = List.map (fun (na, e) -> (na, subst_expr subst e)) bs in
GTacLet (r, bs, subst_expr subst e)
-| GTacArr el ->
- GTacArr (List.map (fun e -> subst_expr subst e) el)
| GTacCst (t, n, el) as e0 ->
let t' = subst_or_tuple subst_kn subst t in
let el' = List.smartmap (fun e -> subst_expr subst e) el in