Skip to content

Commit 93d005c

Browse files
committed
cleanup
1 parent 46f23b6 commit 93d005c

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/coq_elpi_utils.ml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ module EC = EConstr
7171

7272
let safe_destApp sigma t = match EC.kind sigma t with C.App (hd, args) -> (EC.kind sigma hd, args) | x -> (x, [||])
7373
let mkGHole = DAst.make Glob_term.(GHole GInternalHole)
74-
let mkGSort = DAst.make Glob_term.(GSort (UAnonymous { rigid = UState.univ_flexible_alg }))
7574

7675
let mkApp ~depth t l =
7776
match l with
@@ -212,14 +211,6 @@ let rec list_map_acc f acc = function
212211
let acc, xs = list_map_acc f acc xs in
213212
(acc, x :: xs)
214213

215-
let rec dest_globLam g =
216-
match DAst.get g with
217-
| Glob_term.GLambda (name, _, _, bo) ->
218-
let names, bo = dest_globLam bo in
219-
(name :: names, bo)
220-
| _ -> ([], g)
221-
222-
let is_unknown_constructor x = Names.GlobRef.ConstructRef x = Coqlib.lib_ref "elpi.unknown_constructor"
223214
let rec fix_detype x = match DAst.get x with Glob_term.GEvar _ -> mkGHole | _ -> Glob_ops.map_glob_constr fix_detype x
224215

225216
let detype_qvar sigma q =

0 commit comments

Comments
 (0)