mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Remove redundant rooted_vec
macro (#36214)
This macro was copied into mozjs in 2023, in servo/mozjs#352 The two versions are identical, and rooting infrastructure generally lives in mozjs. Let's not keep this redundant copy around. The mozjs version is already imported evyerwhere via `#[macro_use]`. Signed-off-by: Greg Morenz <greg-morenz@droid.cafe>
This commit is contained in:
parent
5f5bf87eee
commit
5d1c64dba9
2 changed files with 0 additions and 17 deletions
|
@ -38,7 +38,6 @@ use std::ops::{Deref, DerefMut};
|
|||
|
||||
/// A trait to allow tracing (only) DOM objects.
|
||||
pub(crate) use js::gc::Traceable as JSTraceable;
|
||||
pub(crate) use js::gc::{RootableVec, RootedVec};
|
||||
use js::glue::{CallScriptTracer, CallStringTracer, CallValueTracer};
|
||||
use js::jsapi::{GCTraceKindToAscii, Heap, JSScript, JSString, JSTracer, TraceKind};
|
||||
use js::jsval::JSVal;
|
||||
|
|
|
@ -637,22 +637,6 @@ macro_rules! document_and_element_event_handlers(
|
|||
)
|
||||
);
|
||||
|
||||
#[macro_export]
|
||||
macro_rules! rooted_vec {
|
||||
(let mut $name:ident) => {
|
||||
let mut root = $crate::dom::bindings::trace::RootableVec::new_unrooted();
|
||||
let mut $name = $crate::dom::bindings::trace::RootedVec::new(&mut root);
|
||||
};
|
||||
(let $name:ident <- $iter:expr) => {
|
||||
let mut root = $crate::dom::bindings::trace::RootableVec::new_unrooted();
|
||||
let $name = $crate::dom::bindings::trace::RootedVec::from_iter(&mut root, $iter);
|
||||
};
|
||||
(let mut $name:ident <- $iter:expr) => {
|
||||
let mut root = $crate::dom::bindings::trace::RootableVec::new_unrooted();
|
||||
let mut $name = $crate::dom::bindings::trace::RootedVec::from_iter(&mut root, $iter);
|
||||
};
|
||||
}
|
||||
|
||||
/// DOM struct implementation for simple interfaces inheriting from PerformanceEntry.
|
||||
macro_rules! impl_performance_entry_struct(
|
||||
($binding:ident, $struct:ident, $type:expr) => (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue