mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-09 14:18:20 +00:00
Remove unused owned_by_store
This commit is contained in:
7
lib/api/src/externals/function.rs
vendored
7
lib/api/src/externals/function.rs
vendored
@@ -42,8 +42,6 @@ pub enum FunctionDefinition {
|
|||||||
pub struct Function {
|
pub struct Function {
|
||||||
pub(crate) store: Store,
|
pub(crate) store: Store,
|
||||||
pub(crate) definition: FunctionDefinition,
|
pub(crate) definition: FunctionDefinition,
|
||||||
// If the Function is owned by the Store, not the instance
|
|
||||||
pub(crate) owned_by_store: bool,
|
|
||||||
pub(crate) exported: ExportFunction,
|
pub(crate) exported: ExportFunction,
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -69,7 +67,6 @@ impl Function {
|
|||||||
|
|
||||||
Self {
|
Self {
|
||||||
store: store.clone(),
|
store: store.clone(),
|
||||||
owned_by_store: true,
|
|
||||||
definition: FunctionDefinition::Host(HostFunctionDefinition { has_env: false }),
|
definition: FunctionDefinition::Host(HostFunctionDefinition { has_env: false }),
|
||||||
exported: ExportFunction {
|
exported: ExportFunction {
|
||||||
address,
|
address,
|
||||||
@@ -108,7 +105,6 @@ impl Function {
|
|||||||
|
|
||||||
Self {
|
Self {
|
||||||
store: store.clone(),
|
store: store.clone(),
|
||||||
owned_by_store: true,
|
|
||||||
definition: FunctionDefinition::Host(HostFunctionDefinition { has_env: true }),
|
definition: FunctionDefinition::Host(HostFunctionDefinition { has_env: true }),
|
||||||
exported: ExportFunction {
|
exported: ExportFunction {
|
||||||
address,
|
address,
|
||||||
@@ -144,7 +140,6 @@ impl Function {
|
|||||||
|
|
||||||
Self {
|
Self {
|
||||||
store: store.clone(),
|
store: store.clone(),
|
||||||
owned_by_store: true,
|
|
||||||
definition: FunctionDefinition::Host(HostFunctionDefinition { has_env: false }),
|
definition: FunctionDefinition::Host(HostFunctionDefinition { has_env: false }),
|
||||||
exported: ExportFunction {
|
exported: ExportFunction {
|
||||||
address,
|
address,
|
||||||
@@ -182,7 +177,6 @@ impl Function {
|
|||||||
|
|
||||||
Self {
|
Self {
|
||||||
store: store.clone(),
|
store: store.clone(),
|
||||||
owned_by_store: true,
|
|
||||||
definition: FunctionDefinition::Host(HostFunctionDefinition { has_env: true }),
|
definition: FunctionDefinition::Host(HostFunctionDefinition { has_env: true }),
|
||||||
exported: ExportFunction {
|
exported: ExportFunction {
|
||||||
address,
|
address,
|
||||||
@@ -309,7 +303,6 @@ impl Function {
|
|||||||
.expect("Can't get call trampoline for the function");
|
.expect("Can't get call trampoline for the function");
|
||||||
Self {
|
Self {
|
||||||
store: store.clone(),
|
store: store.clone(),
|
||||||
owned_by_store: false,
|
|
||||||
definition: FunctionDefinition::Wasm(WasmFunctionDefinition { trampoline }),
|
definition: FunctionDefinition::Wasm(WasmFunctionDefinition { trampoline }),
|
||||||
exported: wasmer_export,
|
exported: wasmer_export,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -81,7 +81,6 @@ where
|
|||||||
Self {
|
Self {
|
||||||
store: other.store,
|
store: other.store,
|
||||||
definition: other.definition,
|
definition: other.definition,
|
||||||
owned_by_store: true, // todo
|
|
||||||
exported: ExportFunction {
|
exported: ExportFunction {
|
||||||
address: other.address,
|
address: other.address,
|
||||||
vmctx: other.vmctx,
|
vmctx: other.vmctx,
|
||||||
|
|||||||
Reference in New Issue
Block a user