aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/macros.rs
diff options
context:
space:
mode:
authorSamson <16504129+sagudev@users.noreply.github.com>2023-08-10 23:46:06 +0200
committerGitHub <noreply@github.com>2023-08-10 21:46:06 +0000
commit450f8193a567ac6e5acd84e89fe73ed7ce137a78 (patch)
tree1c8418988d54fc4122d14218275927a523058413 /components/script/dom/macros.rs
parent1f7f4cf2bedd1819ae129c2ac327425a756b5299 (diff)
downloadservo-450f8193a567ac6e5acd84e89fe73ed7ce137a78.tar.gz
servo-450f8193a567ac6e5acd84e89fe73ed7ce137a78.zip
Use mozjs tracing infrastructure (#29918)
* Update mozjs https://github.com/servo/mozjs/commit/64711ec2e6dc4595df691bffc7f1e5052ab86c8d also fixes https://github.com/servo/servo/issues/30043 * Move to mozjs Traceable and introduce CustomTraceable
Diffstat (limited to 'components/script/dom/macros.rs')
-rw-r--r--components/script/dom/macros.rs16
1 files changed, 0 insertions, 16 deletions
diff --git a/components/script/dom/macros.rs b/components/script/dom/macros.rs
index 324f5419389..fd17d64d4f7 100644
--- a/components/script/dom/macros.rs
+++ b/components/script/dom/macros.rs
@@ -312,22 +312,6 @@ macro_rules! unsafe_no_jsmanaged_fields(
);
);
-macro_rules! jsmanaged_array(
- ($count:expr) => (
- #[allow(unsafe_code)]
- unsafe impl<T> $crate::dom::bindings::trace::JSTraceable for [T; $count]
- where T: $crate::dom::bindings::trace::JSTraceable
- {
- #[inline]
- unsafe fn trace(&self, tracer: *mut ::js::jsapi::JSTracer) {
- for v in self.iter() {
- v.trace(tracer);
- }
- }
- }
- );
-);
-
/// These are used to generate a event handler which has no special case.
macro_rules! define_event_handler(
($handler: ty, $event_type: ident, $getter: ident, $setter: ident, $setter_fn: ident) => (