From 062dd41c937078d4661875408770672acf12b1ce Mon Sep 17 00:00:00 2001 From: Jakob Stoklund Olesen Date: Wed, 6 Sep 2017 15:56:39 -0700 Subject: [PATCH] Don't export the 'Local' type from cton_wasm. This type is not longer used in any public interface, it has become an internal implementation detail. Also remove some unused exported types from the crate. --- lib/wasm/src/lib.rs | 4 ++-- lib/wasm/src/translation_utils.rs | 4 ---- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/lib/wasm/src/lib.rs b/lib/wasm/src/lib.rs index 22fb1c9291..e334570cfe 100644 --- a/lib/wasm/src/lib.rs +++ b/lib/wasm/src/lib.rs @@ -25,5 +25,5 @@ mod translation_utils; pub use module_translator::{translate_module, TranslationResult}; pub use runtime::{FuncEnvironment, WasmRuntime, DummyRuntime}; -pub use translation_utils::{Local, FunctionIndex, GlobalIndex, TableIndex, MemoryIndex, RawByte, - MemoryAddress, SignatureIndex, Global, GlobalInit, Table, Memory}; +pub use translation_utils::{FunctionIndex, GlobalIndex, TableIndex, MemoryIndex, SignatureIndex, + Global, GlobalInit, Table, Memory}; diff --git a/lib/wasm/src/translation_utils.rs b/lib/wasm/src/translation_utils.rs index e95a624f83..2c915f1e43 100644 --- a/lib/wasm/src/translation_utils.rs +++ b/lib/wasm/src/translation_utils.rs @@ -13,10 +13,6 @@ pub type GlobalIndex = usize; pub type MemoryIndex = usize; /// Index of a signature (imported or defined) inside the WebAssembly module. pub type SignatureIndex = usize; -/// Raw byte read from memory. -pub type RawByte = u8; -/// Pointer referring to a memory address. -pub type MemoryAddress = usize; /// WebAssembly import. #[derive(Debug, Clone, Copy)]