Skip to content

Commit

Permalink
Eliminate empty struct *definitions*
Browse files Browse the repository at this point in the history
  • Loading branch information
msprotz committed Dec 20, 2024
1 parent 8b1ec11 commit 4578377
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/DataTypes.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1280,6 +1280,10 @@ let remove_empty_structs files =
LidSet.empty
end)#visit_files () files in

let files = List.map (fun (f, decls) ->
f, List.filter (fun d -> not (LidSet.mem (lid_of_decl d) empty_structs)) decls
) files in

(object

inherit [_] map as super
Expand Down

0 comments on commit 4578377

Please sign in to comment.