Skip to content
This repository was archived by the owner on Sep 8, 2025. It is now read-only.

Commit a95792d

Browse files
committed
Remove ComponentInstance::store accessor
yay! No need for that to be public
1 parent 7ad7e47 commit a95792d

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

crates/wasmtime/src/runtime/vm/component.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ impl ComponentInstance {
223223
.byte_sub(mem::size_of::<ComponentInstance>())
224224
.cast::<ComponentInstance>();
225225
let reference = ptr.as_mut();
226-
let store = &mut *reference.store();
226+
let store = &mut *reference.store.0.as_ptr();
227227
let instance = Instance::from_wasmtime(store, reference.id);
228228
f(store, instance)
229229
}
@@ -342,11 +342,6 @@ impl ComponentInstance {
342342
}
343343
}
344344

345-
/// Returns the store that this component was created with.
346-
pub fn store(&self) -> *mut dyn VMStore {
347-
self.store.0.as_ptr()
348-
}
349-
350345
/// Returns the runtime memory definition corresponding to the index of the
351346
/// memory provided.
352347
///

0 commit comments

Comments
 (0)