Skip to content

Commit cac4f3b

Browse files
author
Hongbo Zhang
committed
[clean up]
1 parent 2ced55b commit cac4f3b

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

jscomp/syntax/ppx_entry.ml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -166,10 +166,8 @@ let gen_fn_mk loc arity args : Parsetree.expression_desc =
166166
arrow (arrow (Ast_literal.type_unit ~loc ()) (List.hd tyvars) ) uncurry_fn
167167
else
168168
arrow (Ext_list.reduce_from_right arrow tyvars) uncurry_fn in
169-
let local_module_name = "Tmp" in
170-
let local_fun_name = "mk" in
171169
Ast_comb.create_local_external loc ~pval_prim ~pval_type
172-
~local_module_name ~local_fun_name args
170+
args
173171

174172

175173
let find_uncurry_attrs_and_remove (attrs : Parsetree.attributes ) =
@@ -388,9 +386,7 @@ let handle_obj_property loc obj name e
388386
~pval_type:(
389387
Ast_comb.arrow_no_label ~loc
390388
(lift_js_type ~loc var) var)
391-
392-
~local_module_name:"Tmp"
393-
~local_fun_name:"cast" ["", obj] in
389+
["", obj] in
394390
{ e with pexp_desc =
395391
Pexp_send
396392
({pexp_desc = down ;

0 commit comments

Comments
 (0)