style: Remove unused ElementStyles::styles_and_restyle_mut.

This commit is contained in:
Emilio Cobos Álvarez 2017-07-15 19:14:54 +02:00
parent 3497bbbf1d
commit 65d2e8ff99
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C

View file

@ -228,14 +228,6 @@ pub enum RestyleKind {
}
impl ElementData {
/// Borrows both styles and restyle mutably at the same time.
pub fn styles_and_restyle_mut(
&mut self
) -> (&mut ElementStyles, &mut RestyleData) {
(&mut self.styles,
&mut self.restyle)
}
/// Invalidates style for this element, its descendants, and later siblings,
/// based on the snapshot of the element that we took when attributes or
/// state changed.