Bug 1606019 - Remove unused FFI function to refcount nsIReferrerInfo. r=xidorn
authorEmilio Cobos Álvarez <emilio@crisal.io>
Thu, 26 Dec 2019 22:17:35 +0000
changeset 508412 8aa7aa72d2e0b94aaac17f334782d6c7a827ef92
parent 508411 90137f7262db2a4d0c9d3e2910c994e4c3780e36
child 508413 4b5e1d7558b633bc42d9061e3c8ae235ea5a0c92
push id103960
push userealvarez@mozilla.com
push dateThu, 26 Dec 2019 22:24:29 +0000
treeherderautoland@8aa7aa72d2e0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersxidorn
bugs1606019
milestone73.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1606019 - Remove unused FFI function to refcount nsIReferrerInfo. r=xidorn We don't use RefPtr<nsIReferrerInfo> in rust. Differential Revision: https://phabricator.services.mozilla.com/D58274
layout/style/GeckoBindings.cpp
servo/components/style/gecko_bindings/sugar/refptr.rs
--- a/layout/style/GeckoBindings.cpp
+++ b/layout/style/GeckoBindings.cpp
@@ -1438,22 +1438,16 @@ void Gecko_nsIURI_Debug(nsIURI* aURI, ns
     *aOut = aURI->GetSpecOrDefault();
   }
 }
 
 // XXX Implemented by hand because even though it's thread-safe, only the
 // subclasses have the HasThreadSafeRefCnt bits.
 void Gecko_AddRefnsIURIArbitraryThread(nsIURI* aPtr) { NS_ADDREF(aPtr); }
 void Gecko_ReleasensIURIArbitraryThread(nsIURI* aPtr) { NS_RELEASE(aPtr); }
-void Gecko_AddRefnsIReferrerInfoArbitraryThread(nsIReferrerInfo* aPtr) {
-  NS_ADDREF(aPtr);
-}
-void Gecko_ReleasensIReferrerInfoArbitraryThread(nsIReferrerInfo* aPtr) {
-  NS_RELEASE(aPtr);
-}
 
 void Gecko_nsIReferrerInfo_Debug(nsIReferrerInfo* aReferrerInfo,
                                  nsCString* aOut) {
   if (aReferrerInfo) {
     if (nsCOMPtr<nsIURI> referrer = aReferrerInfo->GetComputedReferrer()) {
       *aOut = referrer->GetSpecOrDefault();
     }
   }
--- a/servo/components/style/gecko_bindings/sugar/refptr.rs
+++ b/servo/components/style/gecko_bindings/sugar/refptr.rs
@@ -299,21 +299,16 @@ macro_rules! impl_threadsafe_refcount {
 }
 
 impl_threadsafe_refcount!(
     structs::mozilla::URLExtraData,
     bindings::Gecko_AddRefURLExtraDataArbitraryThread,
     bindings::Gecko_ReleaseURLExtraDataArbitraryThread
 );
 impl_threadsafe_refcount!(
-    structs::nsIReferrerInfo,
-    bindings::Gecko_AddRefnsIReferrerInfoArbitraryThread,
-    bindings::Gecko_ReleasensIReferrerInfoArbitraryThread
-);
-impl_threadsafe_refcount!(
     structs::nsIURI,
     bindings::Gecko_AddRefnsIURIArbitraryThread,
     bindings::Gecko_ReleasensIURIArbitraryThread
 );
 impl_threadsafe_refcount!(
     structs::SharedFontList,
     bindings::Gecko_AddRefSharedFontListArbitraryThread,
     bindings::Gecko_ReleaseSharedFontListArbitraryThread