Remove variable.rs

This commit is contained in:
Sergey Pepyakin
2017-12-13 18:15:13 +01:00
parent 47ec274700
commit 5eaf2ca183
7 changed files with 20 additions and 202 deletions

View File

@ -5,7 +5,6 @@ use parking_lot::RwLock;
use elements::{TableType, ResizableLimits};
use interpreter::Error;
use interpreter::module::check_limits;
use interpreter::variable::VariableType;
use interpreter::store::FuncInstance;
/// Table instance.
@ -18,12 +17,12 @@ pub struct TableInstance {
}
impl fmt::Debug for TableInstance {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
f.debug_struct("TableInstance")
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
f.debug_struct("TableInstance")
.field("limits", &self.limits)
.field("buffer.len", &self.buffer.read().len())
.finish()
}
}
}
impl TableInstance {
@ -43,11 +42,6 @@ impl TableInstance {
&self.limits
}
/// Get variable type for this table.
pub fn variable_type(&self) -> VariableType {
panic!("TODO")
}
/// Get the specific value in the table
pub fn get(&self, offset: u32) -> Result<Rc<FuncInstance>, Error> {
let buffer = self.buffer.read();