Bug 1498755 - Part 12: Remove unused main thread FFI refcounting r=emilio
authorCameron McCormack <cam@mcc.id.au>
Sun, 14 Oct 2018 00:06:15 +0000
changeset 489544 6609c511837ddeb4a88ba6a5341b26202ebe316e
parent 489543 8819dd315519624abe75cb340aa1ae8cfd62ca86
child 489545 2f412849ad38683187cff35d9dcfa57951eeadb4
push id247
push userfmarier@mozilla.com
push dateSat, 27 Oct 2018 01:06:44 +0000
reviewersemilio
bugs1498755
milestone64.0a1
Bug 1498755 - Part 12: Remove unused main thread FFI refcounting r=emilio Depends on D8653 Differential Revision: https://phabricator.services.mozilla.com/D8654
layout/style/GeckoBindings.h
--- a/layout/style/GeckoBindings.h
+++ b/layout/style/GeckoBindings.h
@@ -56,25 +56,16 @@ const bool GECKO_IS_NIGHTLY = false;
   static_assert(class_::HasThreadSafeRefCnt::value,                           \
                 "NS_DECL_THREADSAFE_FFI_REFCOUNTING can only be used with "   \
                 "classes that have thread-safe refcounting");                 \
   void Gecko_AddRef##name_##ArbitraryThread(class_* aPtr)                     \
   { NS_ADDREF(aPtr); }                                                        \
   void Gecko_Release##name_##ArbitraryThread(class_* aPtr)                    \
   { NS_RELEASE(aPtr); }
 
-#define NS_DECL_FFI_REFCOUNTING(class_, name_)  \
-  void Gecko_##name_##_AddRef(class_* aPtr);    \
-  void Gecko_##name_##_Release(class_* aPtr);
-#define NS_IMPL_FFI_REFCOUNTING(class_, name_)                    \
-  void Gecko_##name_##_AddRef(class_* aPtr)                       \
-    { MOZ_ASSERT(NS_IsMainThread()); NS_ADDREF(aPtr); }           \
-  void Gecko_##name_##_Release(class_* aPtr)                      \
-    { MOZ_ASSERT(NS_IsMainThread()); NS_RELEASE(aPtr); }
-
 extern "C" {
 
 class ServoBundledURI
 {
 public:
   // NOTE(emilio): Not calling IntoCssUrl will cause to leak the
   // string, so don't do that :)
   already_AddRefed<mozilla::css::URLValue> IntoCssUrl(mozilla::CORSMode);