mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-22 13:11:32 +00:00
Remove commented out code, cleanup build warnings
This commit is contained in:
@ -6,18 +6,14 @@ use std::cell::RefCell;
|
|||||||
use std::collections::HashMap;
|
use std::collections::HashMap;
|
||||||
use std::error::Error;
|
use std::error::Error;
|
||||||
use std::ffi::CStr;
|
use std::ffi::CStr;
|
||||||
use std::ffi::CString;
|
|
||||||
use std::fmt;
|
use std::fmt;
|
||||||
use std::slice;
|
use std::slice;
|
||||||
use std::str;
|
|
||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
use std::{ffi::c_void, mem, ptr};
|
use std::{ffi::c_void, ptr};
|
||||||
use wasmer_runtime::{Ctx, Global, ImportObject, Instance, Memory, Module, Table, Value};
|
use wasmer_runtime::{Ctx, Global, ImportObject, Instance, Memory, Module, Table, Value};
|
||||||
use wasmer_runtime_core::export::{Context, Export, FuncPointer};
|
use wasmer_runtime_core::export::{Context, Export, FuncPointer};
|
||||||
use wasmer_runtime_core::import::{LikeNamespace, Namespace};
|
use wasmer_runtime_core::import::Namespace;
|
||||||
use wasmer_runtime_core::types::{
|
use wasmer_runtime_core::types::{ElementType, FuncSig, MemoryDescriptor, TableDescriptor, Type};
|
||||||
ElementType, FuncSig, GlobalDescriptor, MemoryDescriptor, TableDescriptor, Type,
|
|
||||||
};
|
|
||||||
use wasmer_runtime_core::units::{Bytes, Pages};
|
use wasmer_runtime_core::units::{Bytes, Pages};
|
||||||
|
|
||||||
#[allow(non_camel_case_types)]
|
#[allow(non_camel_case_types)]
|
||||||
@ -841,7 +837,7 @@ pub unsafe extern "C" fn wasmer_func_call(
|
|||||||
update_last_error(CApiError {
|
update_last_error(CApiError {
|
||||||
msg: "wasmer_func_call not yet implemented".to_string(),
|
msg: "wasmer_func_call not yet implemented".to_string(),
|
||||||
});
|
});
|
||||||
return wasmer_result_t::WASMER_ERROR;
|
wasmer_result_t::WASMER_ERROR
|
||||||
// let result = instance.call(func_name_r, ¶ms[..]);
|
// let result = instance.call(func_name_r, ¶ms[..]);
|
||||||
// Box::into_raw(export_func);
|
// Box::into_raw(export_func);
|
||||||
// match result {
|
// match result {
|
||||||
@ -876,15 +872,6 @@ pub unsafe extern "C" fn wasmer_func_call(
|
|||||||
// }
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
///// Gets wasmer_export func
|
|
||||||
//#[no_mangle]
|
|
||||||
//pub unsafe extern "C" fn wasmer_export_name(export: *mut wasmer_export_t) {
|
|
||||||
// if exports.is_null() {
|
|
||||||
// return ptr::null_mut();
|
|
||||||
// }
|
|
||||||
// let named_export = &*(export as *mut NamedExport);
|
|
||||||
//}
|
|
||||||
|
|
||||||
/// Gets the memory within the context at the index `memory_idx`.
|
/// Gets the memory within the context at the index `memory_idx`.
|
||||||
/// The index is always 0 until multiple memories are supported.
|
/// The index is always 0 until multiple memories are supported.
|
||||||
#[allow(clippy::cast_ptr_alignment)]
|
#[allow(clippy::cast_ptr_alignment)]
|
||||||
|
Reference in New Issue
Block a user