Skip to content

Commit

Permalink
Remove to_wasm_error
Browse files Browse the repository at this point in the history
  • Loading branch information
webmaster128 committed Dec 22, 2020
1 parent 0d717aa commit 8ac54f2
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 12 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* [#1941](https://github.com/wasmerio/wasmer/pull/1941) Turn `get_remaining_points`/`set_remaining_points` of the `Metering` middleware into free functions to allow using them in an ahead-of-time compilation setup
* [#1955](https://github.com/wasmerio/wasmer/pull/1955) Set `jit` as a default feature of the `wasmer-wasm-c-api` crate
* [#1944](https://github.com/wasmerio/wasmer/pull/1944) Require `WasmerEnv` to be `Send + Sync` even in dynamic functions.
* [#1963](https://github.com/wasmerio/wasmer/pull/1963) Deprecated `to_wasm_error` in favour of `impl From<BinaryReaderError> for WasmError`
* [#1963](https://github.com/wasmerio/wasmer/pull/1963) Removed `to_wasm_error` in favour of `impl From<BinaryReaderError> for WasmError`

### Fixed

Expand Down
3 changes: 0 additions & 3 deletions lib/compiler/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,6 @@ pub use crate::target::{
PointerWidth, Target, Triple,
};

#[cfg(feature = "translator")]
#[allow(deprecated)]
pub use crate::translator::to_wasm_error;
#[cfg(feature = "translator")]
pub use crate::translator::{
translate_module, wptype_to_type, FunctionBodyData, FunctionMiddleware, MiddlewareBinaryReader,
Expand Down
6 changes: 0 additions & 6 deletions lib/compiler/src/translator/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,3 @@ impl From<BinaryReaderError> for WasmError {
}
}
}

/// Converts a Wasm binary reading error to a runtime Wasm error
#[deprecated(since = "1.0.0-beta3", note = "Use WasmError::from")]
pub fn to_wasm_error(e: BinaryReaderError) -> WasmError {
e.into()
}
2 changes: 0 additions & 2 deletions lib/compiler/src/translator/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ mod error;
mod sections;

pub use self::environ::{FunctionBodyData, ModuleEnvironment, ModuleInfoTranslation};
#[allow(deprecated)]
pub use self::error::to_wasm_error;
pub use self::middleware::{
FunctionMiddleware, MiddlewareBinaryReader, MiddlewareReaderState, ModuleMiddleware,
ModuleMiddlewareChain,
Expand Down

0 comments on commit 8ac54f2

Please sign in to comment.