Skip to content

Commit b2e3b2e

Browse files
committed
remove unuesd variables
1 parent f0362a0 commit b2e3b2e

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

jscomp/core/js_dump.ml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1086,8 +1086,8 @@ and statement_desc top cxt f (s : J.statement_desc) : cxt =
10861086
| Raw_js_code {code = s; code_info = Stmt (Js_stmt_comment)} ->
10871087
P.string f s;
10881088
cxt
1089-
| Raw_js_code {code = s; code_info = Exp (Js_literal {comment})} ->
1090-
(match comment with
1089+
| Raw_js_code {code_info = Exp (Js_literal {comment})} ->
1090+
(match comment with (* The %raw is just a comment *)
10911091
| Some s ->
10921092
P.string f s;
10931093
| None -> ());

jscomp/core/js_pass_tailcall_inline.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ module S = Js_stmt_make
4242

4343

4444
let substitue_variables (map : Ident.t Map_ident.t) =
45-
object (self)
45+
object
4646
inherit Js_map.map
4747
method! ident id =
4848
Map_ident.find_default map id id

jscomp/outcome_printer/tweaked_reason_oprint.cppo.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ and print_simple_out_type ppf =
320320

321321
| Otyp_constr (
322322
Oide_dot (Oide_dot (
323-
Oide_ident "Js_OO", "Callback" ), name),
323+
Oide_ident "Js_OO", "Callback" ), _),
324324
[res]
325325
) ->
326326
fprintf ppf "@[<0>(%a)@ [@bs.this]@]" (print_out_type_1 ~uncurried:false) res

jscomp/syntax/ast_config.ml

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ let rec iter_on_bs_config_stru (x :Parsetree.structure) =
5151
(Ast_payload.table_dispatch !structural_config_table)
5252
| {pstr_desc = Pstr_attribute _} :: rest ->
5353
iter_on_bs_config_stru rest
54-
| non_attr :: _ -> ()
54+
| _ :: _ -> ()
5555

5656
let rec iter_on_bs_config_sigi (x :Parsetree.signature) =
5757
match x with
@@ -62,4 +62,4 @@ let rec iter_on_bs_config_sigi (x :Parsetree.signature) =
6262
(Ast_payload.table_dispatch !signature_config_table)
6363
| {psig_desc = Psig_attribute _} :: rest ->
6464
iter_on_bs_config_sigi rest
65-
| non_attr :: _ -> ()
65+
| _ :: _ -> ()

0 commit comments

Comments
 (0)