Skip to content

Remove some dead code. #7312

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Feb 25, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
dce switch
  • Loading branch information
cristianoc committed Feb 22, 2025
commit 907ec8d23139a9459d901ae5ff66567eb181e237
3 changes: 0 additions & 3 deletions compiler/ml/switch.ml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
type 'a shared = Shared of 'a | Single of 'a

type 'a t_store = {
act_get: unit -> 'a array;
act_get_shared: unit -> 'a shared array;
act_store: 'a -> int;
act_store_shared: 'a -> int;
Expand Down Expand Up @@ -65,7 +64,6 @@ module Store (A : Stored) = struct
st.map <- AMap.add key (mustshare, i) st.map;
i)
| None -> add mustshare act
and get () = Array.of_list (List.rev_map (fun (_, act) -> act) st.acts)
and get_shared () =
let acts =
Array.of_list
Expand All @@ -85,7 +83,6 @@ module Store (A : Stored) = struct
{
act_store = store false;
act_store_shared = store true;
act_get = get;
act_get_shared = get_shared;
}
end
Expand Down
1 change: 0 additions & 1 deletion compiler/ml/switch.mli
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
type 'a shared = Shared of 'a | Single of 'a

type 'a t_store = {
act_get: unit -> 'a array;
act_get_shared: unit -> 'a shared array;
act_store: 'a -> int;
act_store_shared: 'a -> int;
Expand Down