Skip to content

Commit

Permalink
delete an unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
artoy committed Jul 6, 2023
1 parent 7e7ce3c commit eb0989e
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/ownershipInference.ml
Original file line number Diff line number Diff line change
Expand Up @@ -179,17 +179,6 @@ let%lm shuffle_types ~src:(t1,t1') ~dst:(t2,t2') ctxt =
in
loop t1 t2 t1' t2' ctxt

let rec unfold_simple arg mu =
function
| `Int -> `Int
| `Ref t' -> `Ref (unfold_simple arg mu t')
| `TVar id when id = arg -> mu
| `TVar id -> `TVar id
| `Array `Int -> `Array `Int
| `Tuple tl_list -> `Tuple (List.map (unfold_simple arg mu) tl_list)
| `Mu (id,t) -> `Mu (id, unfold_simple arg mu t)
| `IntList -> assert false

(** Walk a type, constraining the first occurrence of an
ownership variable to be well-formed w.r.t [o].
Recall well-formedness requires that if o = 0 => o' = 0
Expand Down

0 comments on commit eb0989e

Please sign in to comment.