-
Notifications
You must be signed in to change notification settings - Fork 469
Remove unused non-bs code #6942
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
Remove unused non-bs code #6942
Conversation
@@ -3072,15 +3002,7 @@ let for_let loc param pat body = | |||
(* fast path, and keep track of simple bindings to unboxable numbers *) | |||
Llet(Strict, Pgenval, id, param, body) | |||
| _ -> | |||
(* Turn off such optimization to reduce diff in the beginning - FIXME*) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
jscomp/ml/matching.ml
Outdated
let tag = Ident.create "tag" in | ||
let tests = | ||
List.fold_right | ||
(fun (path, act) rem -> | ||
let ext = transl_extension_path ex_pat.pat_env path in | ||
Lifthenelse(Lprim(extension_slot_eq , [Lvar tag; ext], loc), | ||
act, rem)) | ||
nonconsts | ||
default | ||
in | ||
Llet(Alias, Pgenval,tag, arg, tests) | ||
List.fold_right | ||
(fun (path, act) rem -> | ||
let ext = transl_extension_path ex_pat.pat_env path in | ||
Lifthenelse(Lprim(extension_slot_eq , [arg; ext], loc), | ||
act, rem)) | ||
nonconsts | ||
default |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cristianoc this code is commited by mistake from my investigation on how the try/catch compilation works.
I couldn't figure where the tag
Llet is used, so I removed it. Could you correct me If I'm wrong.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would you undo changes not related to the flag and put them in a separate PR?
@cristianoc Done |
No description provided.