Skip to content

Commit

Permalink
Remove unused optional argument
Browse files Browse the repository at this point in the history
Summary: And remove some dead code

Reviewed By: andrewjkennedy

Differential Revision: D66505882

fbshipit-source-id: 85215738aef4340810d65c832d973e2b747306fc
  • Loading branch information
Scott Owens authored and facebook-github-bot committed Nov 27, 2024
1 parent ff12c8a commit 799094e
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions hphp/hack/src/typing/typing.ml
Original file line number Diff line number Diff line change
Expand Up @@ -2296,12 +2296,6 @@ module rec Expr : sig
* locl_ty
* bool

val inout_write_back :
env ->
locl_ty Typing_defs_core.fun_param ->
Ast_defs.param_kind * Nast.expr ->
env

val update_array_type :
lhs_of_null_coalesce:bool ->
pos ->
Expand Down Expand Up @@ -8568,9 +8562,7 @@ end = struct

(* Make a type-checking function for an anonymous function or lambda. *)
(* Here ret_ty should include Awaitable wrapper *)
(* TODO: ?el is never set; so we need to fix variadic use of lambda *)
let closure_make
?el
?ret_ty
~supportdyn
~closure_class_name
Expand Down Expand Up @@ -8790,21 +8782,6 @@ end = struct
~init:(env, [], non_variadic_params)
(List.map non_variadic_ft_params ~f:(fun x -> x.fp_type))
in
let env =
match el with
| None -> env
| Some x ->
let rec iter l1 l2 =
match (l1, l2) with
| (_, []) -> ()
| ([], _) -> ()
| (x1 :: rl1, (pkx_2, x2) :: rl2) ->
param_modes ~env x1 x2 pkx_2;
iter rl1 rl2
in
iter non_variadic_ft_params x;
wfold_left2 Expr.inout_write_back env non_variadic_ft_params x
in
let env = Env.set_fn_kind env f.f_fun_kind in
let decl_ty =
Option.map ~f:(Decl_hint.hint env.decl_env) (hint_of_type_hint f.f_ret)
Expand Down

0 comments on commit 799094e

Please sign in to comment.