diff options
| author | Henry Gressmann <mail@henrygressmann.de> | 2024-06-28 23:19:05 +0200 |
|---|---|---|
| committer | Henry Gressmann <mail@henrygressmann.de> | 2024-06-28 23:19:05 +0200 |
| commit | 7e8770cc4e418ef1a8cdfd9b1f59ee14b07cc6c9 (patch) | |
| tree | 7865a95f3a5b6d32b5b26aa42ec3ed730def3d95 /crates/parser/src/conversion.rs | |
| parent | abec4b6cec6ced6c0500348ac5990486a4fe8287 (diff) | |
chore: restructure runtime
Signed-off-by: Henry Gressmann <mail@henrygressmann.de>
Diffstat (limited to 'crates/parser/src/conversion.rs')
| -rw-r--r-- | crates/parser/src/conversion.rs | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/crates/parser/src/conversion.rs b/crates/parser/src/conversion.rs index 1d550f3..214487f 100644 --- a/crates/parser/src/conversion.rs +++ b/crates/parser/src/conversion.rs @@ -225,14 +225,6 @@ pub(crate) fn convert_module_type(ty: wasmparser::RecGroup) -> Result<FuncType> Ok(FuncType { params, results }) } -pub(crate) fn convert_blocktype(blocktype: wasmparser::BlockType) -> BlockArgs { - match blocktype { - wasmparser::BlockType::Empty => BlockArgs::Empty, - wasmparser::BlockType::Type(ty) => BlockArgs::Type(convert_valtype(&ty)), - wasmparser::BlockType::FuncType(ty) => BlockArgs::FuncType(ty), - } -} - pub(crate) fn convert_reftype(reftype: &wasmparser::RefType) -> ValType { match reftype { _ if reftype.is_func_ref() => ValType::RefFunc, |
