Bug 750570, part 3 - Remove unused stabilizeForDeletion argument. r=smaug
authorAndrew McCreight <amccreight@mozilla.com>
Fri, 24 Aug 2012 09:50:06 -0700
changeset 105349 24368b894189f68944f2acceded49f6a3f0859a4
parent 105348 9077df78db40c7cf71f564831e66673be1e49e05
child 105350 ecbb10bf79b32677e5a673f5cd7bae33b019759b
push id55
push usershu@rfrn.org
push dateThu, 30 Aug 2012 01:33:09 +0000
reviewerssmaug
bugs750570
milestone17.0a1
Bug 750570, part 3 - Remove unused stabilizeForDeletion argument. r=smaug This argument isn't used, and would have to have its type changed to support native purple buffer participants, so we just remove it.
dom/src/storage/StorageChild.cpp
xpcom/base/nsAgg.h
xpcom/glue/nsISupportsImpl.h
--- a/dom/src/storage/StorageChild.cpp
+++ b/dom/src/storage/StorageChild.cpp
@@ -29,17 +29,17 @@ NS_IMETHODIMP_(nsrefcnt) StorageChild::R
   nsISupports* base = NS_CYCLE_COLLECTION_CLASSNAME(StorageChild)::Upcast(this);
   nsrefcnt count = mRefCnt.decr(base);
   NS_LOG_RELEASE(this, count, "StorageChild");
   if (count == 1 && mIPCOpen) {
     Send__delete__(this);
     return 0;
   }
   if (count == 0) {
-    mRefCnt.stabilizeForDeletion(base);
+    mRefCnt.stabilizeForDeletion();
     delete this;
     return 0;
   }
   return count;
 }
 
 StorageChild::StorageChild(nsDOMStorage* aOwner)
 : mStorage(aOwner)
--- a/xpcom/base/nsAgg.h
+++ b/xpcom/base/nsAgg.h
@@ -151,17 +151,17 @@ NS_IMETHODIMP_(nsrefcnt)                
 {                                                                           \
     _class* agg = NS_CYCLE_COLLECTION_CLASSNAME(_class)::Downcast(this);    \
     NS_PRECONDITION(0 != agg->mRefCnt, "dup release");                      \
     NS_CheckThreadSafe(agg->_mOwningThread.GetThread(),                     \
                        #_class " not thread-safe");                         \
     nsrefcnt count = agg->mRefCnt.decr(this);                               \
     NS_LOG_RELEASE(this, count, #_class);                                   \
     if (count == 0) {                                                       \
-        agg->mRefCnt.stabilizeForDeletion(this);                            \
+        agg->mRefCnt.stabilizeForDeletion();                                \
         delete agg;                                                         \
         return 0;                                                           \
     }                                                                       \
     return count;                                                           \
 }
 
 #define NS_IMPL_AGGREGATED_HELPER(_class)                                   \
 NS_IMETHODIMP                                                               \
--- a/xpcom/glue/nsISupportsImpl.h
+++ b/xpcom/glue/nsISupportsImpl.h
@@ -134,17 +134,17 @@ public:
       refcount = NS_CCAR_TAGGED_TO_REFCNT(mTagged);
       ++refcount;
       mTagged = NS_CCAR_REFCNT_TO_TAGGED(refcount);
     }
 
     return refcount;
   }
 
-  void stabilizeForDeletion(nsISupports*)
+  void stabilizeForDeletion()
   {
     mTagged = NS_CCAR_TAGGED_STABILIZED_REFCNT;
   }
 
   nsrefcnt decr(nsISupports *owner)
   {
     return decr(owner, nullptr);
   }
@@ -470,17 +470,17 @@ NS_IMETHODIMP_(nsrefcnt) _class::Release
 {                                                                             \
   NS_PRECONDITION(0 != mRefCnt, "dup release");                               \
   NS_ASSERT_OWNINGTHREAD_AND_NOT_CCTHREAD(_class);                            \
   nsISupports *base = NS_CYCLE_COLLECTION_CLASSNAME(_class)::Upcast(this);    \
   nsrefcnt count = mRefCnt.decr(base);                                        \
   NS_LOG_RELEASE(this, count, #_class);                                       \
   if (count == 0) {                                                           \
     NS_ASSERT_OWNINGTHREAD(_class);                                           \
-    mRefCnt.stabilizeForDeletion(base);                                       \
+    mRefCnt.stabilizeForDeletion();                                           \
     _destroy;                                                                 \
     return 0;                                                                 \
   }                                                                           \
   return count;                                                               \
 }
 
 #define NS_IMPL_CYCLE_COLLECTING_RELEASE(_class)                              \
   NS_IMPL_CYCLE_COLLECTING_RELEASE_WITH_DESTROY(_class, delete (this))