Bug 1376498 part 5 - Remove nsClassHashtable::RemoveAndForget(). r=froydnj
authorMats Palmgren <mats@mozilla.com>
Wed, 05 Jul 2017 02:01:45 +0200
changeset 367344 a4a27ab70450302d6c599be8160d0f4860b4c29e
parent 367343 512c69e35fc0c7b3414a7644f825be1eb4ee1beb
child 367345 4ccb89990d136aaea04c3adfcb5a4e436467eecb
push id32130
push usercbook@mozilla.com
push dateWed, 05 Jul 2017 11:01:49 +0000
treeherdermozilla-central@211d4dd61025 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfroydnj
bugs1376498
milestone56.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 1376498 part 5 - Remove nsClassHashtable::RemoveAndForget(). r=froydnj MozReview-Commit-ID: 2VVgViNhruj
xpcom/ds/nsClassHashtable.h
--- a/xpcom/ds/nsClassHashtable.h
+++ b/xpcom/ds/nsClassHashtable.h
@@ -51,21 +51,16 @@ public:
    */
   bool Get(KeyType aKey, UserDataType* aData) const;
 
   /**
    * @copydoc nsBaseHashtable::Get
    * @returns nullptr if the key is not present.
    */
   UserDataType Get(KeyType aKey) const;
-
-  // obsolete - will be removed after converting existing consumers to Remove.
-  void RemoveAndForget(KeyType aKey, nsAutoPtr<T>& aOut) {
-    Remove(aKey, &aOut);
-  }
 };
 
 //
 // nsClassHashtable definitions
 //
 
 template<class KeyClass, class T>
 template<typename... Args>