diff --git a/crates/wasmtime/src/runtime/component/concurrent.rs b/crates/wasmtime/src/runtime/component/concurrent.rs index 4b07832129f5..0e4f97570982 100644 --- a/crates/wasmtime/src/runtime/component/concurrent.rs +++ b/crates/wasmtime/src/runtime/component/concurrent.rs @@ -87,7 +87,7 @@ use std::vec::Vec; use table::{TableDebug, TableId}; use wasmtime_environ::Trap; use wasmtime_environ::component::{ - CanonicalAbiInfo, CanonicalOptions, CanonicalOptionsDataModel, ExportIndex, MAX_FLAT_PARAMS, + CanonicalAbiInfo, CanonicalOptions, CanonicalOptionsDataModel, MAX_FLAT_PARAMS, MAX_FLAT_RESULTS, OptionsIndex, PREPARE_ASYNC_NO_RESULT, PREPARE_ASYNC_WITH_RESULT, RuntimeComponentInstanceIndex, RuntimeTableIndex, StringEncoding, TypeComponentGlobalErrorContextTableIndex, TypeComponentLocalErrorContextTableIndex, @@ -4369,8 +4369,6 @@ pub(crate) struct GuestTask { /// If present, a pending `Event::None` or `Event::Cancelled` to be /// delivered to this task. event: Option, - /// The `ExportIndex` of the guest function being called, if known. - function_index: Option, /// Whether or not the task has exited. exited: bool, /// Threads belonging to this task @@ -4455,7 +4453,6 @@ impl GuestTask { sync_call_set, instance, event: None, - function_index: None, exited: false, threads: HashSet::new(), host_future_state, @@ -5169,7 +5166,7 @@ pub(crate) fn prepare_call( let (exit_tx, exit_rx) = oneshot::channel(); let caller = state.guest_thread; - let mut task = GuestTask::new( + let task = GuestTask::new( state, Box::new(for_any_lower(move |store, params| { lower_params(handle, token.as_context_mut(store), params) @@ -5204,7 +5201,6 @@ pub(crate) fn prepare_call( }, async_function, )?; - task.function_index = Some(handle.index()); let task = state.push(task)?; let thread = state.push(GuestThread::new_implicit(task))?; diff --git a/crates/wasmtime/src/runtime/component/func.rs b/crates/wasmtime/src/runtime/component/func.rs index 481e0de6445d..b913fb7d2749 100644 --- a/crates/wasmtime/src/runtime/component/func.rs +++ b/crates/wasmtime/src/runtime/component/func.rs @@ -825,11 +825,6 @@ impl Func { self.instance } - #[cfg(feature = "component-model-async")] - pub(crate) fn index(self) -> ExportIndex { - self.index - } - /// Creates a `LowerContext` using the configuration values of this lifted /// function. ///