Don't generate rare_data_for_layout methods anymore

It is only used twice.
This commit is contained in:
Anthony Ramine 2020-03-31 21:54:02 +02:00
parent dd750c6f86
commit 414d477b54
3 changed files with 6 additions and 9 deletions

View file

@ -671,11 +671,6 @@ macro_rules! impl_rare_data (
rare_data.as_mut().unwrap()
})
}
#[allow(unsafe_code)]
fn rare_data_for_layout(&self) -> &Option<Box<$type>> {
unsafe { self.rare_data.borrow_for_layout() }
}
);
);