Skip to content

Commit 7c3843b

Browse files
committed
remove no longer needed OpEncoder::encode_param
1 parent df07096 commit 7c3843b

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

crates/wasmi/src/engine/translator/func/encoder.rs

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -354,22 +354,6 @@ impl OpEncoder {
354354
Ok(pos)
355355
}
356356

357-
/// Encodes the given `param` of type `T` to the [`OpEncoder`].
358-
///
359-
/// # Note
360-
///
361-
/// This is usually used to encode parameters of certain variable width [`Op`]s
362-
/// such as for the encoding of Wasm's `br_table`.
363-
pub fn encode_param<T>(&mut self, param: T) -> Result<(), Error>
364-
where
365-
T: ir::Encode,
366-
{
367-
debug_assert!(self.staged.is_none());
368-
self.encode_impl(param)?;
369-
debug_assert!(self.ops.take_temp().is_none());
370-
Ok(())
371-
}
372-
373357
/// Encodes an [`Op::ConsumeFuel`] operator to `self`.
374358
///
375359
/// # Note

0 commit comments

Comments
 (0)