Remove state erasure for now
This commit is contained in:
parent
e714653478
commit
61b8ad38bd
3 changed files with 0 additions and 42 deletions
|
@ -926,16 +926,6 @@ impl<'a, 'w, S: Send + Sync + 'static> ViewContext<'a, 'w, S> {
|
|||
})
|
||||
});
|
||||
}
|
||||
|
||||
pub(crate) fn erase_state<R>(&mut self, f: impl FnOnce(&mut ViewContext<()>) -> R) -> R {
|
||||
let entity_id = self.unit_entity.id;
|
||||
let mut cx = ViewContext::mutable(
|
||||
&mut *self.window_cx.app,
|
||||
&mut *self.window_cx.window,
|
||||
entity_id,
|
||||
);
|
||||
f(&mut cx)
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a, 'w, S> Context for ViewContext<'a, 'w, S> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue