Skip to content

Commit

Permalink
chore: remove unused CompilerTest::wit_bind
Browse files Browse the repository at this point in the history
  • Loading branch information
greenhat committed Feb 15, 2024
1 parent 27c1c8b commit c46ca5d
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions tests/integration/src/compiler_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,6 @@ pub struct CompilerTest {
entrypoint: Option<FunctionIdent>,
/// The compiled Wasm component/module
pub wasm_bytes: Vec<u8>,
/// The WIT Rust bindings generated by the wit-bindgen (if Wasm component is compiled)
pub wit_bind: Option<String>,
/// The compiled IR
pub hir: Option<Box<miden_hir::Program>>,
/// The compiled MASM
Expand Down Expand Up @@ -147,26 +145,6 @@ impl CompilerTest {
.to_str()
.unwrap()
.to_string();
let wasm_comp_filename = wasm_comp_path
.file_stem()
.unwrap()
.to_str()
.unwrap()
.to_string();
let target_dir = &wasm_comp_path
.parent() // remove file
.unwrap()
.parent() // remove release
.unwrap()
.parent() // remove wasm32-wasi (target)
.unwrap();
let crate_name_dashed = wasm_comp_filename.replace("_", "-");
let wit_bind_path = target_dir
.join("bindings")
.join(crate_name_dashed)
.join("bindings.rs");
dbg!(&wit_bind_path);
// let wit_bind_str = String::from_utf8(std::fs::read(wit_bind_path).unwrap()).unwrap();
Self {
session: default_session(),
source: CompilerTestSource::RustCargo {
Expand All @@ -175,7 +153,6 @@ impl CompilerTest {
},
entrypoint: None,
wasm_bytes: fs::read(wasm_artifacts.first().unwrap()).unwrap(),
wit_bind: None,
hir: None,
ir_masm: None,
}
Expand Down Expand Up @@ -244,7 +221,6 @@ impl CompilerTest {
entrypoint: Some(entrypoint),
hir: None,
ir_masm: None,
wit_bind: None,
}
}

Expand All @@ -259,7 +235,6 @@ impl CompilerTest {
entrypoint: None,
hir: None,
ir_masm: None,
wit_bind: None,
}
}

Expand Down Expand Up @@ -300,7 +275,6 @@ impl CompilerTest {
entrypoint: Some(entrypoint),
hir: None,
ir_masm: None,
wit_bind: None,
}
}

Expand Down

0 comments on commit c46ca5d

Please sign in to comment.