Skip to content

Commit

Permalink
Remove recent ocaml-ism
Browse files Browse the repository at this point in the history
  • Loading branch information
msprotz committed Oct 4, 2023
1 parent 46a1532 commit 7b2b79a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/Inlining.ml
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,7 @@ let drop_unused files =
) files

let mark_possibly_unused ifdefs files =
let map = object (self)
let map = (object (self)
inherit [_] reduce as super
method zero = LidSet.empty
method plus = LidSet.union
Expand All @@ -657,12 +657,12 @@ let mark_possibly_unused ifdefs files =
LidSet.union (self#visit_expr env e1)
(LidSet.inter
(LidSet.union (self#visit_expr env e2) (self#visit_expr env e2')) (self#visit_expr env e3))
end#visit_files () files in
object
end)#visit_files () files in
(object
inherit [_] map
method! visit_DFunction _ cc flags n t name binders body =
if not (LidSet.mem name map) && List.mem Private flags then
DFunction (cc, MaybeUnused :: flags, n, t, name, binders, body)
else
DFunction (cc, flags, n, t, name, binders, body)
end#visit_files () files
end)#visit_files () files

0 comments on commit 7b2b79a

Please sign in to comment.