aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom
diff options
context:
space:
mode:
authorGreg Morenz <greg-morenz@droid.cafe>2025-03-28 22:00:07 -0400
committerGitHub <noreply@github.com>2025-03-29 02:00:07 +0000
commit5d1c64dba9cf3e65f770370eb17f00ad4114edce (patch)
tree8a9e4c162d9f3761cb392b02a9d088da0f6a277f /components/script/dom
parent5f5bf87eee34856ec5c1260a3c05b024fc68c99b (diff)
downloadservo-5d1c64dba9cf3e65f770370eb17f00ad4114edce.tar.gz
servo-5d1c64dba9cf3e65f770370eb17f00ad4114edce.zip
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>
Diffstat (limited to 'components/script/dom')
-rw-r--r--components/script/dom/bindings/trace.rs1
-rw-r--r--components/script/dom/macros.rs16
2 files changed, 0 insertions, 17 deletions
diff --git a/components/script/dom/bindings/trace.rs b/components/script/dom/bindings/trace.rs
index 3e1e3cfdaec..b0c65b9fd9d 100644
--- a/components/script/dom/bindings/trace.rs
+++ b/components/script/dom/bindings/trace.rs
@@ -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;
diff --git a/components/script/dom/macros.rs b/components/script/dom/macros.rs
index 7448207ebab..7679e4a546d 100644
--- a/components/script/dom/macros.rs
+++ b/components/script/dom/macros.rs
@@ -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) => (