Skip to content

Commit 43516a0

Browse files
committed
remove simple_binary_ast which is not used
1 parent 98f6e98 commit 43516a0

File tree

5 files changed

+5
-18
lines changed

5 files changed

+5
-18
lines changed

jscomp/common/js_config.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ let get_check_div_by_zero () = !check_div_by_zero
5959

6060
let syntax_only = ref false
6161
let binary_ast = ref false
62-
let simple_binary_ast = ref false
62+
6363

6464
let bs_suffix = ref false
6565

jscomp/common/js_config.mli

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ val tool_name : string
7474

7575
val syntax_only : bool ref
7676
val binary_ast : bool ref
77-
val simple_binary_ast : bool ref
77+
7878

7979

8080
val bs_suffix : bool ref

jscomp/core/js_implementation.ml

-10
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,6 @@ let process_with_gentype filename =
5656

5757
let after_parsing_sig ppf outputprefix ast =
5858
Ast_config.iter_on_bs_config_sigi ast;
59-
if !Js_config.simple_binary_ast then begin
60-
let oc = open_out_bin (outputprefix ^ Literals.suffix_mliast_simple) in
61-
Ml_binary.write_ast Mli !Location.input_name ast oc;
62-
close_out oc ;
63-
end;
6459
if !Js_config.binary_ast then
6560
begin
6661
let sourcefile = !Location.input_name in
@@ -165,11 +160,6 @@ let after_parsing_impl ppf outputprefix (ast : Parsetree.structure) =
165160
let ast =
166161
if !Js_config.no_export then
167162
no_export ast else ast in
168-
if !Js_config.simple_binary_ast then begin
169-
let oc = open_out_bin (outputprefix ^ Literals.suffix_mlast_simple) in
170-
Ml_binary.write_ast Ml !Location.input_name ast oc;
171-
close_out oc ;
172-
end;
173163
if !Js_config.binary_ast then begin
174164
let sourcefile = !Location.input_name in
175165
Binary_ast.write_ast ~sourcefile

jscomp/main/js_main.ml

+1-4
Original file line numberDiff line numberDiff line change
@@ -386,10 +386,7 @@ let buckle_script_flags : (string * Bsc_args.spec * string) array =
386386

387387
"-bs-list-conditionals", unit_call (fun () -> Lexer.list_variables Format.err_formatter),
388388
"List existing conditional variables";
389-
390-
"-bs-simple-binary-ast", set Js_config.simple_binary_ast,
391-
"*internal* Generate binary .mliast_simple and mlast_simple";
392-
389+
393390
"-bs-eval", string_call (fun s -> eval s ~suffix:Literals.suffix_ml),
394391
"*internal* (experimental) set the string to be evaluated in OCaml syntax";
395392

lib/4.06.1/unstable/bspack.ml

+2-2
Original file line numberDiff line numberDiff line change
@@ -11909,7 +11909,7 @@ val tool_name : string
1190911909

1191011910
val syntax_only : bool ref
1191111911
val binary_ast : bool ref
11912-
val simple_binary_ast : bool ref
11912+
1191311913

1191411914

1191511915
val bs_suffix : bool ref
@@ -11999,7 +11999,7 @@ let get_check_div_by_zero () = !check_div_by_zero
1199911999

1200012000
let syntax_only = ref false
1200112001
let binary_ast = ref false
12002-
let simple_binary_ast = ref false
12002+
1200312003

1200412004
let bs_suffix = ref false
1200512005

0 commit comments

Comments
 (0)