Skip to content

Commit c46ca5d

Browse files
committed
chore: remove unused CompilerTest::wit_bind
1 parent 27c1c8b commit c46ca5d

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

tests/integration/src/compiler_test.rs

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,6 @@ pub struct CompilerTest {
6666
entrypoint: Option<FunctionIdent>,
6767
/// The compiled Wasm component/module
6868
pub wasm_bytes: Vec<u8>,
69-
/// The WIT Rust bindings generated by the wit-bindgen (if Wasm component is compiled)
70-
pub wit_bind: Option<String>,
7169
/// The compiled IR
7270
pub hir: Option<Box<miden_hir::Program>>,
7371
/// The compiled MASM
@@ -147,26 +145,6 @@ impl CompilerTest {
147145
.to_str()
148146
.unwrap()
149147
.to_string();
150-
let wasm_comp_filename = wasm_comp_path
151-
.file_stem()
152-
.unwrap()
153-
.to_str()
154-
.unwrap()
155-
.to_string();
156-
let target_dir = &wasm_comp_path
157-
.parent() // remove file
158-
.unwrap()
159-
.parent() // remove release
160-
.unwrap()
161-
.parent() // remove wasm32-wasi (target)
162-
.unwrap();
163-
let crate_name_dashed = wasm_comp_filename.replace("_", "-");
164-
let wit_bind_path = target_dir
165-
.join("bindings")
166-
.join(crate_name_dashed)
167-
.join("bindings.rs");
168-
dbg!(&wit_bind_path);
169-
// let wit_bind_str = String::from_utf8(std::fs::read(wit_bind_path).unwrap()).unwrap();
170148
Self {
171149
session: default_session(),
172150
source: CompilerTestSource::RustCargo {
@@ -175,7 +153,6 @@ impl CompilerTest {
175153
},
176154
entrypoint: None,
177155
wasm_bytes: fs::read(wasm_artifacts.first().unwrap()).unwrap(),
178-
wit_bind: None,
179156
hir: None,
180157
ir_masm: None,
181158
}
@@ -244,7 +221,6 @@ impl CompilerTest {
244221
entrypoint: Some(entrypoint),
245222
hir: None,
246223
ir_masm: None,
247-
wit_bind: None,
248224
}
249225
}
250226

@@ -259,7 +235,6 @@ impl CompilerTest {
259235
entrypoint: None,
260236
hir: None,
261237
ir_masm: None,
262-
wit_bind: None,
263238
}
264239
}
265240

@@ -300,7 +275,6 @@ impl CompilerTest {
300275
entrypoint: Some(entrypoint),
301276
hir: None,
302277
ir_masm: None,
303-
wit_bind: None,
304278
}
305279
}
306280

0 commit comments

Comments
 (0)