Remove useless method
We need to move state from layout to paint in any case
This commit is contained in:
parent
8d1518d70c
commit
db5ded0252
1 changed files with 0 additions and 17 deletions
|
@ -1939,23 +1939,6 @@ pub trait BorrowWindow: BorrowMut<Window> + BorrowMut<AppContext> {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Like `with_element_state`, but for situations where the element_id is optional. If the
|
|
||||||
/// id is `None`, no state will be retrieved or stored.
|
|
||||||
fn with_optional_element_state<S, R>(
|
|
||||||
&mut self,
|
|
||||||
element_id: Option<ElementId>,
|
|
||||||
f: impl FnOnce(Option<S>, &mut Self) -> (R, S),
|
|
||||||
) -> R
|
|
||||||
where
|
|
||||||
S: 'static,
|
|
||||||
{
|
|
||||||
if let Some(element_id) = element_id {
|
|
||||||
self.with_element_state(element_id, f)
|
|
||||||
} else {
|
|
||||||
f(None, self).0
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Obtain the current content mask.
|
/// Obtain the current content mask.
|
||||||
fn content_mask(&self) -> ContentMask<Pixels> {
|
fn content_mask(&self) -> ContentMask<Pixels> {
|
||||||
self.window()
|
self.window()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue