diff --git a/sandbox/host/src/store_refcell.rs b/sandbox/host/src/store_refcell.rs index cf70c8e92f8..23cd88ffc91 100644 --- a/sandbox/host/src/store_refcell.rs +++ b/sandbox/host/src/store_refcell.rs @@ -174,12 +174,6 @@ impl StoreRefCell { store: impl GenericAsStoreMut, f: F, ) -> Result { - // We expect the same store - //debug_assert!( - // self.compare_stores(store.as_store_ref()), - // "stores are different" - //); - // Caller just returned borrowed mutably reference to the store, now we can safely borrow it mutably again let _store = store; @@ -201,16 +195,6 @@ impl StoreRefCell { Ok(result) } - //#[allow(unused)] - //fn compare_stores(&self, returned_store: StoreRef) -> bool { - // // SAFETY: - // // Verified with Miri, it seems safe. - // // Carefully compare the stores while don't using/holding mutable references to them in the same time. - // let orig_store_ref: StoreRef = unsafe { &*self.store.get() }.as_store_ref(); - - // StoreRef::same(&orig_store_ref, &returned_store) - //} - /// Returns store ptr, same semantics as `RefCell::as_ptr` pub unsafe fn as_ptr(&self) -> *mut S { self.store.get()