dom: move node ranges to raredata (#35554)

Signed-off-by: webbeef <me@webbeef.org>
This commit is contained in:
webbeef 2025-02-21 10:41:25 -08:00 committed by GitHub
parent 57ed444498
commit e883eaa322
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 32 additions and 28 deletions

View file

@ -1121,11 +1121,6 @@ impl Default for WeakRangeVec {
#[allow(unsafe_code)]
impl WeakRangeVec {
/// Create a new vector of weak references.
pub(crate) fn new() -> Self {
Self::default()
}
/// Whether that vector of ranges is empty.
pub(crate) fn is_empty(&self) -> bool {
unsafe { (*self.cell.get()).is_empty() }