Skip to content

Commit

Permalink
[clean up]
Browse files Browse the repository at this point in the history
  • Loading branch information
Hongbo Zhang committed Jun 1, 2016
1 parent 2ced55b commit cac4f3b
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions jscomp/syntax/ppx_entry.ml
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,8 @@ let gen_fn_mk loc arity args : Parsetree.expression_desc =
arrow (arrow (Ast_literal.type_unit ~loc ()) (List.hd tyvars) ) uncurry_fn
else
arrow (Ext_list.reduce_from_right arrow tyvars) uncurry_fn in
let local_module_name = "Tmp" in
let local_fun_name = "mk" in
Ast_comb.create_local_external loc ~pval_prim ~pval_type
~local_module_name ~local_fun_name args
args


let find_uncurry_attrs_and_remove (attrs : Parsetree.attributes ) =
Expand Down Expand Up @@ -388,9 +386,7 @@ let handle_obj_property loc obj name e
~pval_type:(
Ast_comb.arrow_no_label ~loc
(lift_js_type ~loc var) var)

~local_module_name:"Tmp"
~local_fun_name:"cast" ["", obj] in
["", obj] in
{ e with pexp_desc =
Pexp_send
({pexp_desc = down ;
Expand Down

0 comments on commit cac4f3b

Please sign in to comment.