@@ -58,8 +58,6 @@ pub struct CompilerArgs {
58
58
59
59
pub fn get_compiler_args (
60
60
path : & Path ,
61
- rescript_version : Option < String > ,
62
- bsc_path : Option < PathBuf > ,
63
61
build_dev_deps : bool ,
64
62
) -> Result < String > {
65
63
let filename = & helpers:: get_abs_path ( path) ;
@@ -69,15 +67,6 @@ pub fn get_compiler_args(
69
67
let root_rescript_config =
70
68
packages:: read_config ( & workspace_root. to_owned ( ) . unwrap_or ( package_root. to_owned ( ) ) ) ?;
71
69
let rescript_config = packages:: read_config ( & package_root) ?;
72
- let rescript_version = if let Some ( rescript_version) = rescript_version {
73
- rescript_version
74
- } else {
75
- let bsc_path = match bsc_path {
76
- Some ( bsc_path) => helpers:: get_abs_path ( & bsc_path) ,
77
- None => helpers:: get_bsc ( & package_root, & workspace_root) ,
78
- } ;
79
- helpers:: get_rescript_version ( & bsc_path)
80
- } ;
81
70
82
71
// make PathBuf from package root and get the relative path for filename
83
72
let relative_filename = filename. strip_prefix ( PathBuf :: from ( & package_root) ) . unwrap ( ) ;
@@ -89,7 +78,6 @@ pub fn get_compiler_args(
89
78
& rescript_config,
90
79
& root_rescript_config,
91
80
& relative_filename,
92
- & rescript_version,
93
81
& workspace_root,
94
82
workspace_root. as_ref ( ) . unwrap_or ( & package_root) ,
95
83
& contents,
@@ -106,7 +94,6 @@ pub fn get_compiler_args(
106
94
& rescript_config,
107
95
& root_rescript_config,
108
96
& ast_path,
109
- & rescript_version,
110
97
& relative_filename,
111
98
is_interface,
112
99
has_interface,
@@ -141,7 +128,6 @@ pub fn initialize_build(
141
128
None => helpers:: get_bsc ( & project_root, & workspace_root) ,
142
129
} ;
143
130
let root_config_name = packages:: read_package_name ( & project_root) ?;
144
- let rescript_version = helpers:: get_rescript_version ( & bsc_path) ;
145
131
146
132
if !snapshot_output && show_progress {
147
133
print ! ( "{} {}Building package tree..." , style( "[1/7]" ) . bold( ) . dim( ) , TREE ) ;
@@ -190,7 +176,6 @@ pub fn initialize_build(
190
176
root_config_name,
191
177
packages,
192
178
workspace_root,
193
- rescript_version,
194
179
bsc_path,
195
180
) ;
196
181
packages:: parse_packages ( & mut build_state) ;
0 commit comments